From 91c97a3046bb1e901050bf10a5536b0ae6d8bd02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 12 Feb 2024 23:04:06 +0100 Subject: [PATCH] added threading to flask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 3568d9c..44b1b39 100644 --- a/server/app.py +++ b/server/app.py @@ -138,4 +138,7 @@ def start_mqtt_publishers(universe_count): if __name__ == "__main__": start_mqtt_publishers(universe_count) - flask_api() + flask_thread = threading.Thread(target=flask_api()) + flask_thread.start() + flask_thread.join() +