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() +