Don't close channel on context cancel, it is already closed
This commit is contained in:
parent
91933b798d
commit
72068efb4d
@ -47,7 +47,4 @@ func (ctx *Context) Done() <-chan struct{} {
|
||||
// Cancel cancels the context
|
||||
func (ctx *Context) Cancel() {
|
||||
close(ctx.doneCh)
|
||||
if ctx.channel != nil {
|
||||
close(ctx.channel)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user