Check for private flag on duplicate added torrent

This commit is contained in:
Calum Lind 2015-08-31 00:47:19 +01:00
parent 78fcf1781a
commit 7ef9e3dbe0
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ class TorrentManager(component.Component):
if add_torrent_id in self.get_torrent_list():
log.info("Merging trackers for torrent (%s) already in session...", add_torrent_id)
# Don't merge trackers if either torrent has private flag set
if self[add_torrent_id].get_status(["private"])["private"]:
if torrent_info.priv() or self[add_torrent_id].get_status(["private"])["private"]:
log.info("Merging trackers abandoned: Torrent has private flag set.")
return