fix bug when accepting incoming connections to paused torrents

This commit is contained in:
Arvid Norberg 2010-04-09 05:54:36 +00:00
parent c26d1631e0
commit 483112bb14
1 changed files with 2 additions and 2 deletions

View File

@ -1079,8 +1079,8 @@ namespace libtorrent
return;
}
if ((!t->allows_peers() && (!t->is_auto_managed()
|| !m_ses.m_settings.incoming_starts_queued_torrents))
if ((t->is_paused() && (!t->is_auto_managed()
|| !m_ses.m_settings.incoming_starts_queued_torrents))
|| t->has_error())
{
// paused torrents will not accept