summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2014-08-16 22:49:13 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2014-08-16 22:50:02 +0100
commit223c9319c703e4ab2c276c0bbb5f62048940b3f7 (patch)
tree935869d424eca50c27f5f2cb521d8230a8acdd75
parentc61c2d8c3a1a8829854b4eafbb3375bf14851e09 (diff)
downloaddeluge-223c9319c703e4ab2c276c0bbb5f62048940b3f7.tar.gz
deluge-223c9319c703e4ab2c276c0bbb5f62048940b3f7.tar.bz2
deluge-223c9319c703e4ab2c276c0bbb5f62048940b3f7.zip
Fix firing of Finished event when moving
-rw-r--r--deluge/core/torrentmanager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py
index 9ecc4149a..7eb9c06ff 100644
--- a/deluge/core/torrentmanager.py
+++ b/deluge/core/torrentmanager.py
@@ -1027,7 +1027,7 @@ class TorrentManager(component.Component):
torrent.set_save_path(os.path.normpath(alert.handle.save_path()))
torrent.set_move_completed(False)
- if torrent in self.waiting_on_finish_moving:
+ if torrent_id in self.waiting_on_finish_moving:
self.waiting_on_finish_moving.remove(torrent_id)
torrent.is_finished = True
component.get("EventManager").emit(TorrentFinishedEvent(torrent_id))
@@ -1041,7 +1041,7 @@ class TorrentManager(component.Component):
except (RuntimeError, KeyError):
return
- if torrent in self.waiting_on_finish_moving:
+ if torrent_id in self.waiting_on_finish_moving:
self.waiting_on_finish_moving.remove(torrent_id)
torrent.is_finished = True
component.get("EventManager").emit(TorrentFinishedEvent(torrent_id))