merge graceful pause fix from aio

This commit is contained in:
Arvid Norberg 2013-04-07 01:20:09 +00:00
parent 6ea6bf9e92
commit 5aa85c9ca2
1 changed files with 7 additions and 1 deletions

View File

@ -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
}
// -----------------------------