fix progress indicator bug

This commit is contained in:
Bernardo 2022-03-05 01:48:11 +00:00 committed by GitHub
parent 75c6c2c877
commit fc55e01d86

View file

@ -309,11 +309,12 @@ func (a *App) UpdatePortVisibility(ctx context.Context, codespaceName string, ar
})
// wait for success or failure
if err := g.Wait(); err != nil {
err := g.Wait()
a.StopProgressIndicator()
if err != nil {
return err
}
a.StopProgressIndicator()
}
return nil