mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Make sure sessionproxy events are registered after stopping and starting a daemon from gtkui.
This commit is contained in:
parent
93dee4c764
commit
95ce85ec78
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue