From 01d46c30e49dcc889105885de37ca0bc8a5d7187 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Thu, 19 Oct 2017 09:03:36 +0200 Subject: [PATCH] Remove obsolete imports --- src/shutdown.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/shutdown.py b/src/shutdown.py index a066104c..278759e5 100644 --- a/src/shutdown.py +++ b/src/shutdown.py @@ -3,8 +3,6 @@ import Queue import threading import time -from class_outgoingSynSender import outgoingSynSender -from class_sendDataThread import sendDataThread from bmconfigparser import BMConfigParser from debug import logger from helper_sql import sqlQuery, sqlStoredProcedure @@ -51,9 +49,7 @@ def doCleanShutdown(): time.sleep(.25) for thread in threading.enumerate(): - if isinstance(thread, sendDataThread): - thread.sendDataThreadQueue.put((0, 'shutdown','no data')) - if thread is not threading.currentThread() and isinstance(thread, StoppableThread) and not isinstance(thread, outgoingSynSender): + if thread is not threading.currentThread() and isinstance(thread, StoppableThread): logger.debug("Waiting for thread %s", thread.name) thread.join()