From 4a097e99b3c36cff811a2d59c27f46bd681d2674 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 10 May 2019 09:03:29 +0300 Subject: [PATCH] Fixes for @omkar1117 --- src/class_objectProcessor.py | 2 +- src/class_singleWorker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/class_objectProcessor.py b/src/class_objectProcessor.py index 1ced704c..720cdf02 100644 --- a/src/class_objectProcessor.py +++ b/src/class_objectProcessor.py @@ -6,8 +6,8 @@ import time from binascii import hexlify from subprocess import call # nosec -import knownnodes import highlevelcrypto +import knownnodes from addresses import ( calculateInventoryHash, decodeAddress, decodeVarint, encodeAddress, encodeVarint, varintDecodeError diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index 5076e0ce..f69175e5 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -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