From 7b9b7504adf36da5b372c8c93131b2635068cb55 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sat, 27 May 2017 19:01:14 +0200 Subject: [PATCH] Don't clean right on startup --- src/class_singleCleaner.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/class_singleCleaner.py b/src/class_singleCleaner.py index 1ed7a5e4..6c0a62f6 100644 --- a/src/class_singleCleaner.py +++ b/src/class_singleCleaner.py @@ -49,6 +49,10 @@ class singleCleaner(threading.Thread, StoppableThread): # Either the user hasn't set stopresendingafterxdays and stopresendingafterxmonths yet or the options are missing from the config file. shared.maximumLengthOfTimeToBotherResendingMessages = float('inf') + # initial wait + if state.shutdown == 0: + self.stop.wait(300) + while state.shutdown == 0: queues.UISignalQueue.put(( 'updateStatusBar', 'Doing housekeeping (Flushing inventory in memory to disk...)'))