From 5f562fb0ab829c3d6e412ee723ebcbe9a506bdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <philipp@hoerist.com> 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 16633fb45..817522205 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':