Skip to content

Commit

Permalink
bugfix: reopening closed channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Rozhkov_Bogdan authored and xlab committed Oct 12, 2022
1 parent 0054e89 commit 1684124
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions closer.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func Init(cfg Config) {
c.codeErr = cfg.ExitCodeErr
c.signals = cfg.ExitSignals
signal.Notify(c.signalChan, c.signals...)
c.cancelWaitChan = make(chan struct{})
go c.wait()
c.sem.Unlock()
}
Expand Down

0 comments on commit 1684124

Please sign in to comment.