fix for torrent announcing bug introduced when supporting fine grained control over sources torrents are announced to

This commit is contained in:
Arvid Norberg
2010-03-31 02:40:00 +00:00
parent 3ae927abb4
commit 4c4c7f832a
3 changed files with 30 additions and 8 deletions

View File

@@ -2377,11 +2377,11 @@ namespace aux {
--tracker_limit;
t->set_announce_to_dht(dht_limit >= 0);
t->set_announce_to_trackers(tracker_limit >= 0);
if (t->is_paused()) t->resume();
t->set_allow_peers(true);
}
else
{
if (!t->is_paused()) t->pause();
t->set_allow_peers(false);
}
}
}