Remove obsolete imports
This commit is contained in:
parent
d28a7bfb86
commit
01d46c30e4
|
@ -3,8 +3,6 @@ import Queue
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from class_outgoingSynSender import outgoingSynSender
|
|
||||||
from class_sendDataThread import sendDataThread
|
|
||||||
from bmconfigparser import BMConfigParser
|
from bmconfigparser import BMConfigParser
|
||||||
from debug import logger
|
from debug import logger
|
||||||
from helper_sql import sqlQuery, sqlStoredProcedure
|
from helper_sql import sqlQuery, sqlStoredProcedure
|
||||||
|
@ -51,9 +49,7 @@ def doCleanShutdown():
|
||||||
time.sleep(.25)
|
time.sleep(.25)
|
||||||
|
|
||||||
for thread in threading.enumerate():
|
for thread in threading.enumerate():
|
||||||
if isinstance(thread, sendDataThread):
|
if thread is not threading.currentThread() and isinstance(thread, StoppableThread):
|
||||||
thread.sendDataThreadQueue.put((0, 'shutdown','no data'))
|
|
||||||
if thread is not threading.currentThread() and isinstance(thread, StoppableThread) and not isinstance(thread, outgoingSynSender):
|
|
||||||
logger.debug("Waiting for thread %s", thread.name)
|
logger.debug("Waiting for thread %s", thread.name)
|
||||||
thread.join()
|
thread.join()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user