fix to incoming-starts-paused torrent

This commit is contained in:
Arvid Norberg 2010-05-09 00:55:22 +00:00
parent 056b53ee08
commit 330f1a2785
1 changed files with 5 additions and 2 deletions

View File

@ -1111,9 +1111,12 @@ namespace libtorrent
TORRENT_ASSERT(m_torrent.expired()); TORRENT_ASSERT(m_torrent.expired());
if (t->is_paused()) if (t->is_paused()
&& m_ses.m_settings.incoming_starts_queued_torrents
&& !m_ses.paused()
&& !t->is_aborted()
&& !m_ses.is_aborted())
{ {
TORRENT_ASSERT(m_ses.m_settings.incoming_starts_queued_torrents);
t->resume(); t->resume();
} }