Dity hack to fix “RuntimeError: dictionary changed size during iteration”
This commit is contained in:
parent
a6a08103bb
commit
90fa03f9e3
|
@ -308,7 +308,7 @@ def purge_cb(*args):
|
|||
global urls
|
||||
|
||||
t_now = now()
|
||||
for url, url_d in urls.items():
|
||||
for url, url_d in urls.copy():
|
||||
if (t_now - url_d['launched']) > \
|
||||
int(w.config_get_plugin('reannounce_wait'))*60:
|
||||
del urls[url]
|
||||
|
|
Loading…
Reference in a new issue