Don't close channel on context cancel, it is already closed

This commit is contained in:
Elara 2022-05-01 11:42:42 -07:00
parent 91933b798d
commit 72068efb4d
1 changed files with 0 additions and 3 deletions

View File

@ -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)
}
}