From 95ce85ec780b81a1418d3b0ab8f5711d66e6aee9 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Thu, 17 Jan 2013 22:10:48 -0500 Subject: [PATCH] Make sure sessionproxy events are registered after stopping and starting a daemon from gtkui. --- deluge/ui/sessionproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/sessionproxy.py b/deluge/ui/sessionproxy.py index b1dc29bbc..5fba31a81 100644 --- a/deluge/ui/sessionproxy.py +++ b/deluge/ui/sessionproxy.py @@ -65,11 +65,11 @@ class SessionProxy(component.Component): # Holds the time of the last key update.. {torrent_id: {key1, time, ...}, ...} self.cache_times = {} + def start(self): client.register_event_handler("TorrentStateChangedEvent", self.on_torrent_state_changed) client.register_event_handler("TorrentRemovedEvent", self.on_torrent_removed) client.register_event_handler("TorrentAddedEvent", self.on_torrent_added) - def start(self): def on_torrent_status(status): # Save the time we got the torrent status t = time.time()