Skip to content

Commit

Permalink
fix: monitor stuck on wait when closing
Browse files Browse the repository at this point in the history
Signed-off-by: Ji Hwan <[email protected]>
  • Loading branch information
jhkimqd committed Nov 25, 2024
1 parent 25f1554 commit 2b498a7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,10 @@ func monitor(ctx context.Context) error {
}
}()

// Give time for the UI to attempt rendering.
time.Sleep(5 * time.Second)
if !isUiRendered {
// If UI cannot be rendered and returns, close the goroutine.
ctx.Done()
}
// Give time for goroutine to finish.
time.Sleep(1 * time.Second)
// Receive the errors from errChan and return to exit.
err = <-errChan
return err
Expand Down

0 comments on commit 2b498a7

Please sign in to comment.