Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd29083

Browse files
committed
Minor just in case patch
1 parent 5be0a83 commit fd29083

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,8 @@ def _():
10311031
if len(socket._ready[address]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
10321032
s = socket.socket()
10331033
s._connect(address)
1034-
socket._ready[address].append(s._sock)
1034+
with kb.locks.socket:
1035+
socket._ready[address].append(s._sock)
10351036
except socket.error:
10361037
pass
10371038
finally:

0 commit comments

Comments
 (0)