Don't close channel on context cancel, it is already closed
This commit is contained in:
		@@ -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