Skip to content

Commit 125f75b

Browse files
committed
Fix race condition.
1 parent 2df52ef commit 125f75b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/etk/run.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,5 @@ func (sc *StatefulComp) MergeAndPopMsgs(width int) ui.Text {
196196
}
197197

198198
func (sc *StatefulComp) Finish() {
199-
if sc.g.finishCh != nil {
200-
close(sc.g.finishCh)
201-
sc.g.finishCh = nil
202-
}
199+
close(sc.g.finishCh)
203200
}

0 commit comments

Comments
 (0)