Skip to content

Commit 86d1181

Browse files
author
Vladimir Kotal
committed
do not start timeout thread with 0 period
fixes #3597
1 parent 5e23980 commit 86d1181

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/start.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ def start_rest_thread(logger):
444444

445445

446446
def start_timeout_thread(logger, sync_period):
447+
logger.debug("Starting timeout thread")
447448
thread = threading.Thread(target=timeout_loop,
448449
name="Timeout thread",
449450
args=(logger, sync_period), daemon=True)
@@ -546,7 +547,8 @@ def main():
546547
sync_thread.start()
547548

548549
start_rest_thread(logger)
549-
start_timeout_thread(logger, sync_period)
550+
if sync_period > 0:
551+
start_timeout_thread(logger, sync_period)
550552

551553
# Start Tomcat last. It will be the foreground process.
552554
logger.info("Starting Tomcat")

0 commit comments

Comments
 (0)