Skip to content

Commit

Permalink
add signal forwarding for exiting requesters
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed May 28, 2024
1 parent 5673ac1 commit a10696f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webseed-peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (ws *webseedPeer) requester(i int) {
ws.updateRequestor = nil
}

if i < ws.maxRequesters && ws.waiting >= ws.maxRequesters {
if i >= ws.maxRequesters && ws.waiting >= ws.maxRequesters {
// we've been woken by a signal - if we are going to exit
// instead of processing we need to pass the signal on
ws.requesterCond.Signal()
Expand Down

0 comments on commit a10696f

Please sign in to comment.