From cb138dbbd92584d98e2c44d18e1d9997dddb96a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 16:32:17 +0100 Subject: [PATCH] added 5 sec sleeper before startin publisher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 33465b8..0be3791 100644 --- a/server/app.py +++ b/server/app.py @@ -176,7 +176,7 @@ if __name__ == "__main__": (ti_receiver,ti_sender) = Pipe(True) ti_updater_thread = Process(target=tube_index_updater, args=(ti_sender, )) ti_updater_thread.start() - time.sleep(1) + time.sleep(5) publisher_thread = Process(target=mqtt_publisher, args=(ti_receiver, )) publisher_thread.start() flask_thread = Process(target=flask_api)