Skip to content

Commit

Permalink
Minor just in case patch
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed Nov 17, 2015
1 parent 5be0a83 commit fd29083
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,8 @@ def _():
if len(socket._ready[address]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
s = socket.socket()
s._connect(address)
socket._ready[address].append(s._sock)
with kb.locks.socket:
socket._ready[address].append(s._sock)
except socket.error:
pass
finally:
Expand Down

0 comments on commit fd29083

Please sign in to comment.