From c2c224ace7eace701006292b091afc1981f9c397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 26 Aug 2015 21:42:00 +0200 Subject: Fix terminate variable for single thread mode Latest changes for multithreading broke single thread mode. --- scripts/loop.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/loop.py') diff --git a/scripts/loop.py b/scripts/loop.py index 29be5aa..f9df231 100755 --- a/scripts/loop.py +++ b/scripts/loop.py @@ -114,12 +114,11 @@ def sigterm_handler(_signo, _stack_frame): __preparethreadEvent__.set() # Main loop and single thread # +__terminate__ = False def loop(): utils.dirtycheck() initialize.all() if conf.multithread: - global __terminate__ - __terminate__ = False __preparethread__.start() __measurethread__.start() else: -- cgit v1.2.3