diff --git a/peer.go b/peer.go index 09dd43e266..c251cfd413 100644 --- a/peer.go +++ b/peer.go @@ -396,9 +396,9 @@ func (p *Peer) close(lockTorrent bool) { p.t.iterPeers(func(o *Peer) { if o != p { fmt.Println("ONCLOSE1A", o.String()) - if p.isLowOnRequests(true, lockTorrent) { + if o.isLowOnRequests(true, lockTorrent) { fmt.Println("ONCLOSE1B", o.String()) - p.updateRequests("webseedPeer.onClose", lockTorrent) + o.updateRequests("peer.Close", lockTorrent) } } }, lockTorrent)