Fix #1222 do not try to set options on a torrent_id that is no longer in the session
This commit is contained in:
parent
02b71451c6
commit
901d2d715c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue