Minor just in case patch

This commit is contained in:
Miroslav Stampar 2015-11-17 02:35:53 +01:00
parent 5be0a83e94
commit fd2908336a

View File

@ -1031,6 +1031,7 @@ def _setSocketPreConnect():
if len(socket._ready[address]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
s = socket.socket()
s._connect(address)
with kb.locks.socket:
socket._ready[address].append(s._sock)
except socket.error:
pass