From 483112bb14e69ec4353892e7b65afe9de5107255 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 9 Apr 2010 05:54:36 +0000 Subject: [PATCH] fix bug when accepting incoming connections to paused torrents --- src/peer_connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 750ad6911..1951e2bc4 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -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