policies: fix logic error for sync mode

This commit is contained in:
Jens Langhammer 2021-01-17 23:31:34 +01:00
parent 920736fc77
commit 33f06f0799
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class PolicyEngine:
task = PolicyProcess(binding, self.request, task_end) task = PolicyProcess(binding, self.request, task_end)
task.daemon = False task.daemon = False
LOGGER.debug("P_ENG: Starting Process", policy=binding.policy) LOGGER.debug("P_ENG: Starting Process", policy=binding.policy)
if CURRENT_PROCESS._config.get("daemon"): if not CURRENT_PROCESS._config.get("daemon"):
task.run() task.run()
else: else:
task.start() task.start()