Skip to content

Commit 8546da2

Browse files
authored
Merge pull request #441 from jhkimqd/jihwan/fix-monitor-close-time
fix: monitor stuck on wait when closing
2 parents 25f1554 + 2b498a7 commit 8546da2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cmd/monitor/monitor.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,10 @@ func monitor(ctx context.Context) error {
193193
}
194194
}()
195195

196-
// Give time for the UI to attempt rendering.
197-
time.Sleep(5 * time.Second)
198196
if !isUiRendered {
199197
// If UI cannot be rendered and returns, close the goroutine.
200198
ctx.Done()
201199
}
202-
// Give time for goroutine to finish.
203-
time.Sleep(1 * time.Second)
204200
// Receive the errors from errChan and return to exit.
205201
err = <-errChan
206202
return err

0 commit comments

Comments
 (0)