Do not connect on shutdown

- in some cases, such as when using trustedpeer, outgoingSynSender
  threads would wake up and try to connect. This fixes it.
This commit is contained in:
Peter Šurda 2016-06-18 20:35:16 +02:00
parent cec2233043
commit efa12c3ac6
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -96,6 +96,8 @@ class outgoingSynSender(threading.Thread, StoppableThread):
except threading.ThreadError as e:
if shared.shutdown:
break = "outgoingSynSender-" +":", ".") # log parser field separator
if':') == -1:
address_family = socket.AF_INET