@ -6,8 +6,8 @@ import time
from binascii import hexlify
from subprocess import call # nosec
import knownnodes
import highlevelcrypto
from addresses import (
calculateInventoryHash, decodeAddress, decodeVarint, encodeAddress,
encodeVarint, varintDecodeError
@ -119,7 +119,7 @@ class singleWorker(threading.Thread, StoppableThread):
# before we start on existing POW tasks.
self.stop.wait(10)
if state.shutdown > 0:
if state.shutdown:
return
# just in case there are any pending tasks for msg