Unverified Commit a44198e3 authored by dirkmc's avatar dirkmc Committed by GitHub

fix: possible deadlock scenario in session want sender (#271)

parent d7c2ca39
......@@ -366,9 +366,13 @@ func (spm *sessionWantSender) processUpdates(updates []update) {
// If any peers have sent us too many consecutive DONT_HAVEs, remove them
// from the session
if len(prunePeers) > 0 {
go func() {
for p := range prunePeers {
spm.SignalAvailability(p, false)
}
}()
}
}
// convenience structs for passing around want-blocks and want-haves for a peer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment