mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-20 23:28:16 +00:00
Fix #2283 : Potential for sessionproxy keyerror with newly added torrents
This commit is contained in:
parent
e2e37a83de
commit
9856f97323
@ -135,7 +135,7 @@ class SessionProxy(component.Component):
|
||||
keys = self.torrents[torrent_id][1].keys()
|
||||
|
||||
for key in keys:
|
||||
if time.time() - self.cache_times[torrent_id][key] > self.cache_time:
|
||||
if time.time() - self.cache_times[torrent_id].get(key, 0.0) > self.cache_time:
|
||||
keys_to_get.append(key)
|
||||
|
||||
if not keys_to_get:
|
||||
|
Loading…
x
Reference in New Issue
Block a user