Iterate safely over dict

Fixes #9633
This commit is contained in:
Philipp Hörist 2019-04-05 21:57:18 +02:00
parent 72b8c0ab7f
commit 5f562fb0ab
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class SocksQueue:
def activate_proxy(self, idx):
if not self.isHashInSockObjs(self.senders, idx):
return
for key in self.senders:
for key in list(self.senders):
if idx in key:
sender = self.senders[key]
if sender.file_props.type_ != 's':