delegate event send to worker.
This commit is contained in:
@@ -211,12 +211,6 @@ func (p *Pool) Remove(id string) error {
|
|||||||
|
|
||||||
close(peer.stop)
|
close(peer.stop)
|
||||||
|
|
||||||
select {
|
|
||||||
case p.events <- PoolEvent{ID: id, Kind: EventDisconnected}:
|
|
||||||
case <-p.done:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user