mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
Make sure sessionproxy events are registered after stopping and starting a daemon from gtkui.
This commit is contained in:
parent
f3722ebc4f
commit
823a1f0fc4
@ -67,11 +67,11 @@ class SessionProxy(component.Component):
|
|||||||
# Holds the time of the last key update.. {torrent_id: {key1, time, ...}, ...}
|
# Holds the time of the last key update.. {torrent_id: {key1, time, ...}, ...}
|
||||||
self.cache_times = {}
|
self.cache_times = {}
|
||||||
|
|
||||||
|
def start(self):
|
||||||
client.register_event_handler("TorrentStateChangedEvent", self.on_torrent_state_changed)
|
client.register_event_handler("TorrentStateChangedEvent", self.on_torrent_state_changed)
|
||||||
client.register_event_handler("TorrentRemovedEvent", self.on_torrent_removed)
|
client.register_event_handler("TorrentRemovedEvent", self.on_torrent_removed)
|
||||||
client.register_event_handler("TorrentAddedEvent", self.on_torrent_added)
|
client.register_event_handler("TorrentAddedEvent", self.on_torrent_added)
|
||||||
|
|
||||||
def start(self):
|
|
||||||
def on_get_session_state(torrent_ids):
|
def on_get_session_state(torrent_ids):
|
||||||
for torrent_id in torrent_ids:
|
for torrent_id in torrent_ids:
|
||||||
# Let's at least store the torrent ids with empty statuses
|
# Let's at least store the torrent ids with empty statuses
|
||||||
|
Loading…
x
Reference in New Issue
Block a user