don't iterate over the dict we are changing
This commit is contained in:
parent
fea969e91b
commit
3f0a2952ee
1 changed files with 1 additions and 1 deletions
|
|
@ -536,7 +536,7 @@ class RepoManager(object):
|
|||
|
||||
# prune recent tasks
|
||||
now = time.time()
|
||||
for task_id in self.recent_tasks:
|
||||
for task_id in list(self.recent_tasks):
|
||||
if now - self.recent_tasks[task_id] > 600:
|
||||
del self.recent_tasks[task_id]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue