Suppress error on releasing unlocked lock

This commit is contained in:
mailchuck 2015-11-23 00:03:49 +01:00 committed by Peter Surda
parent e82e33fa51
commit ec68146135

View File

@ -76,7 +76,10 @@ class outgoingSynSender(threading.Thread, StoppableThread):
time.time()) time.time())
shared.alreadyAttemptedConnectionsListLock.acquire() shared.alreadyAttemptedConnectionsListLock.acquire()
shared.alreadyAttemptedConnectionsList[peer] = 0 shared.alreadyAttemptedConnectionsList[peer] = 0
shared.alreadyAttemptedConnectionsListLock.release() try:
shared.alreadyAttemptedConnectionsListLock.release()
except ThreadError as e:
pass
self.name = "outgoingSynSender-" + peer.host self.name = "outgoingSynSender-" + peer.host
if peer.host.find(':') == -1: if peer.host.find(':') == -1:
address_family = socket.AF_INET address_family = socket.AF_INET