prevent traceback. Fixes #9054

This commit is contained in:
Yann Leboulanger 2018-04-07 22:04:32 +02:00
parent 93b50bf1f6
commit 27e45856b0
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ class SocksQueue:
self.process_result(result, sender) self.process_result(result, sender)
def send_file(self, file_props, account, mode): def send_file(self, file_props, account, mode):
for key in self.senders.keys(): for key in list(self.senders.keys()):
if file_props.name in key and file_props.transport_sid in key \ if file_props.name in key and file_props.transport_sid in key \
and self.senders[key].mode == mode: and self.senders[key].mode == mode:
log.info('socks5: sending file') log.info('socks5: sending file')