diff --git a/daemon.py b/daemon.py index b99d17507..f5d906fb7 100644 --- a/daemon.py +++ b/daemon.py @@ -4623,7 +4623,7 @@ def runPostsQueue(baseDir: str,sendThreads: [],debug: bool) -> None: time.sleep(1) removeDormantThreads(baseDir,sendThreads,debug) -def runPostsWatchdog(httpd) -> None: +def runPostsWatchdog(projectVersion: str,httpd) -> None: """This tries to keep the posts thread running even if it dies """ print('Starting posts queue watchdog') @@ -4783,7 +4783,7 @@ def runDaemon(projectVersion, \ if not unitTest: httpd.thrPostsWatchdog= \ threadWithTrace(target=runPostsWatchdog, \ - args=(httpd),daemon=True) + args=(projectVersion,httpd),daemon=True) httpd.thrPostsWatchdog.start() else: httpd.thrPostsQueue.start()