diff --git a/client.go b/client.go index 142213c0..b4d3f17a 100644 --- a/client.go +++ b/client.go @@ -980,6 +980,9 @@ func (p *Peer) initUpdateRequestsTimer() { func (c *Peer) updateRequestsTimerFunc() { c.locker().Lock() defer c.locker().Unlock() + if c.closed.IsSet() { + return + } if c.needRequestUpdate != "" { return }