From 267a9f83cc0358097844eff8488f2d55555edb0c Mon Sep 17 00:00:00 2001 From: Yufeng Duan <55268016+didovesei@users.noreply.github.com> Date: Tue, 27 Oct 2020 23:26:06 -0700 Subject: [PATCH] fix --- forch/forchestrator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forch/forchestrator.py b/forch/forchestrator.py index 886f18e41..3d88189f1 100644 --- a/forch/forchestrator.py +++ b/forch/forchestrator.py @@ -458,7 +458,7 @@ def _attempt_start_config_hash_clash_timer(self): return self._config_hash_clash_timer = threading.Timer( interval=self._config_hash_clash_timeout_sec, - function=self._raise_config_hash_clash_exception()) + function=self._raise_config_hash_clash_exception) self._config_hash_clash_timer.start() LOGGER.info('Config hash clash timer started') @@ -466,6 +466,7 @@ def _attempt_cancel_config_hash_clash_timer(self): if not self._config_hash_clash_timer: return self._config_hash_clash_timer.cancel() + self._config_hash_clash_timer = None LOGGER.info('Config hash clash timer cancelled') def _raise_config_hash_clash_exception(self):