libtorrent fix: should prevent the infinite sequence of auto manager triggering

This commit is contained in:
Miguel Freitas 2013-11-23 12:38:50 -02:00
parent 0903a9e0ec
commit 77cfe2cd6c

View File

@ -7136,7 +7136,8 @@ namespace libtorrent
TORRENT_ASSERT(m_ses.is_network_thread());
if (m_allow_peers == b
&& m_graceful_pause_mode == graceful) return;
&& (m_graceful_pause_mode == graceful
|| m_ses.is_paused()) ) return;
m_allow_peers = b;
if (!m_ses.is_paused())