From: Max Value Date: Sat, 27 Dec 2025 00:17:52 +0000 (+0000) Subject: moved second thread start to app context X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=9779a0bc805fa26e75fe846295a29a2fde7e7e65;p=conf-dialer moved second thread start to app context changed test numbers --- diff --git a/dialer.py b/dialer.py index 4f07a3b..04207a9 100755 --- a/dialer.py +++ b/dialer.py @@ -319,9 +319,10 @@ async def confbridgeunmute_callback(manager, message): # ============================================================================== -if __name__ == "__main__": +with app.app_context(): # start the event watch manager thread = threading.Thread(target=start_watch, daemon=True) thread.start() +if __name__ == "__main__": socketio.run(app, host='127.0.0.1', port=8000, debug=True) diff --git a/players.json b/players.json index ec8c528..98f5fa7 100644 --- a/players.json +++ b/players.json @@ -1,3 +1,4 @@ [ - {"name": "test_name", "number":"+447594768180"} + {"name": "hannah", "number":"+447403696819"}, + {"name": "will", "number":"+447594768180"} ]