From f1642e5327bc798e7e297fff06dd4e00e34430eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 5 Apr 2019 21:57:18 +0200 Subject: [PATCH] Iterate safely over dict Fixes #9633 --- gajim/common/socks5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/common/socks5.py b/gajim/common/socks5.py index ea9402dae..4d406299b 100644 --- a/gajim/common/socks5.py +++ b/gajim/common/socks5.py @@ -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':