summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 47429cf..060f76c 100644
--- a/main.go
+++ b/main.go
@@ -75,7 +75,9 @@ func (ui *Ui) Cleanup() {
defer ui.State.Unlock()
if ui.State.PlayerCancel != nil {
+ done := ui.State.PlayerContext.Done()
ui.State.PlayerCancel()
+ <-done
}
}