mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
Merge branch 'master' into multiuser
This commit is contained in:
commit
dee33745c8
2 changed files with 2 additions and 2 deletions
|
@ -398,7 +398,7 @@ what is currently in the config and it could not convert the value
|
|||
loaded_data = json.loads(data[start:end])
|
||||
if self.__config == loaded_data and self.__version == version:
|
||||
# The config has not changed so lets just return
|
||||
if self._save_timer:
|
||||
if self._save_timer and self._save_timer.active():
|
||||
self._save_timer.cancel()
|
||||
return
|
||||
except IOError, e:
|
||||
|
|
|
@ -241,9 +241,9 @@ class SessionProxy(component.Component):
|
|||
|
||||
def on_torrent_added(self, torrent_id):
|
||||
self.torrents[torrent_id] = [time.time() - self.cache_time - 1, {}]
|
||||
self.cache_times[torrent_id] = {}
|
||||
def on_status(status):
|
||||
self.torrents[torrent_id][1].update(status)
|
||||
self.cache_times[torrent_id] = {}
|
||||
t = time.time()
|
||||
for key in status:
|
||||
self.cache_times[torrent_id][key] = t
|
||||
|
|
Loading…
Add table
Reference in a new issue