Skip to content

Commit

Permalink
fix peer refs
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 4, 2024
1 parent ad33c1b commit 5bc4a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5bc4a90

Please sign in to comment.