From 67be35739c2de8b600b2edc76fcfe38e00c09965 Mon Sep 17 00:00:00 2001 From: arvidn Date: Tue, 19 Dec 2017 19:39:03 +0200 Subject: [PATCH] :attempt to fix disconnections when torrents enter upload mode due to failures --- src/peer_connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 10b8e1a57..0f3495475 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -751,6 +751,7 @@ namespace libtorrent #endif if (t->is_upload_only()) send_not_interested(); else t->peer_is_interesting(*this); + disconnect_if_redundant(); return; } @@ -1931,6 +1932,7 @@ namespace libtorrent if (t && t->has_picker()) t->picker().check_peer_invariant(m_have_piece, peer_info_struct()); #endif + if (disconnect_if_redundant()) return; } // it's important to update whether we're intersted in this peer before