connection.go | 7 +++++-- diff --git a/connection.go b/connection.go index 0393497c5cec07d4523fde04c9aa741a9f1a85b6..883d6c8ecb5da60714a7ef4ce41684ffa5913256 100644 --- a/connection.go +++ b/connection.go @@ -1483,8 +1483,11 @@ if n < 0 { panic(n) } c.updateRequests() - // TODO: Other connections that aren't interested, and can provide this - // chunk might be wakeable? + for _c := range c.t.conns { + if !_c.Interested && _c != c && c.PeerHasPiece(pieceIndex(r.Index)) { + _c.updateRequests() + } + } return true }