From 9d47ac97a29153bd47a71f49b6d8874eba9594d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 16:52:50 +0100 Subject: [PATCH] added join commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index 0205035..632fcde 100644 --- a/server/app.py +++ b/server/app.py @@ -176,8 +176,10 @@ 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(5) + ti_updater_thread.join() publisher_thread = Process(target=mqtt_publisher, args=(ti_receiver, )) publisher_thread.start() + publisher_thread.join() flask_thread = Process(target=flask_api) - flask_thread.start() \ No newline at end of file + flask_thread.start() + flask_thread.join() \ No newline at end of file