daemon: fixed race in start/stop
Resolves: rhbz#1028119 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
b31830d709
commit
17a6609e2a
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,6 @@ class Daemon(object):
|
|||
self._save_active_profile(self._profile.name)
|
||||
self._unit_manager.start_tuning()
|
||||
|
||||
self._terminate.clear()
|
||||
while not tuned.utils.commands.wait(self._terminate, self._update_interval):
|
||||
log.debug("updating monitors")
|
||||
self._unit_manager.update_monitors()
|
||||
|
|
@ -104,6 +103,7 @@ class Daemon(object):
|
|||
|
||||
log.info("starting tuning")
|
||||
self._thread = threading.Thread(target=self._thread_code)
|
||||
self._terminate.clear()
|
||||
self._thread.start()
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue