Fix #1222 do not try to set options on a torrent_id that is no longer in the session

This commit is contained in:
Andrew Resch 2010-04-09 13:05:02 -07:00
parent 02b71451c6
commit 901d2d715c
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ class Core(CorePluginBase):
#apply #apply
for torrent_id,label in self.torrent_labels.iteritems(): for torrent_id,label in self.torrent_labels.iteritems():
if label_id == label: if label_id == label and torrent_id in self.torrents:
self._set_torrent_options(torrent_id , label_id) self._set_torrent_options(torrent_id , label_id)
#auto add #auto add