Skip to content

Commit fc55e01

Browse files
authored
fix progress indicator bug
1 parent 75c6c2c commit fc55e01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/cmd/codespace/ports.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,12 @@ func (a *App) UpdatePortVisibility(ctx context.Context, codespaceName string, ar
309309
})
310310

311311
// wait for success or failure
312-
if err := g.Wait(); err != nil {
312+
err := g.Wait()
313+
a.StopProgressIndicator()
314+
if err != nil {
313315
return err
314316
}
315317

316-
a.StopProgressIndicator()
317318
}
318319

319320
return nil

0 commit comments

Comments
 (0)