From fd2908336ae6970c23ff36d9968cfff52ea97a25 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 17 Nov 2015 02:35:53 +0100 Subject: [PATCH] Minor just in case patch --- lib/core/option.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index 28ea9c4cb..b666c79a6 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1031,7 +1031,8 @@ def _setSocketPreConnect(): 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: