fix traceback at end of file transfer. Fixes #8932

This commit is contained in:
Yann Leboulanger 2018-03-06 12:10:37 +01:00
parent d2eeceb7e1
commit c40dfe3817
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ class SocksQueue:
connections with 1
"""
if idx != -1:
for key in self.senders.keys():
for key in list(self.senders.keys()):
if idx in key:
self.remove_sender_by_key(key, do_disconnect=do_disconnect)
if not remove_all: