mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
Fix #2283 : Potential for sessionproxy keyerror with newly added torrents
This commit is contained in:
parent
e2e37a83de
commit
9856f97323
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue