fix invariant check for graceful pause

This commit is contained in:
Arvid Norberg 2011-04-11 02:57:32 +00:00
parent 35d8f7bc19
commit 6a9865b7c9
1 changed files with 2 additions and 2 deletions

View File

@ -5452,7 +5452,7 @@ namespace libtorrent
{
// make sure upload only peers are disconnected
if (t->is_upload_only() && m_upload_only)
TORRENT_ASSERT(m_disconnect_started);
TORRENT_ASSERT(m_disconnect_started || t->graceful_pause());
if (m_upload_only
&& !m_interesting
&& m_bitfield_received
@ -5464,7 +5464,7 @@ namespace libtorrent
{
// none of this matters if we're disconnecting anyway
if (t->is_upload_only())
TORRENT_ASSERT(!m_interesting);
TORRENT_ASSERT(!m_interesting || t->graceful_pause());
if (is_seed())
TORRENT_ASSERT(m_upload_only);
}