From 5aa85c9ca255b5af1e7de397790b3b6fa054349d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 7 Apr 2013 01:20:09 +0000 Subject: [PATCH] merge graceful pause fix from aio --- src/peer_connection.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 3e03472e2..bf84f57ff 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1407,7 +1407,7 @@ namespace libtorrent disconnect_if_redundant(); if (is_disconnecting()) return; - if (is_choked()) + if (is_choked() && !t->graceful_pause()) { if (ignore_unchoke_slots()) { @@ -1453,6 +1453,12 @@ namespace libtorrent } #endif } +#if defined TORRENT_VERBOSE_LOGGING + else if (t->graceful_pause()) + { + peer_log("DID NOT UNCHOKE [ graceful pause mode ]"); + } +#endif } // -----------------------------