start bot thread

main
simp 2025-05-28 20:07:19 -04:00
parent 16c3119e22
commit 0f14c0242a
1 changed files with 3 additions and 3 deletions

6
app.py
View File

@ -2240,9 +2240,9 @@ def main_thread(exit_event, username, password, hostname, port2, channel, port,
exit_event.set()
sys.exit()
# exit_main = threading.Event()
# thread_main = threading.Thread(target=main_thread, args=(exit_main, username, password, hostname, port2, channel, port, primary, auth_users, instance_url))
# thread_main.start()
exit_main = threading.Event()
thread_main = threading.Thread(target=main_thread, args=(exit_main, username, password, hostname, port2, channel, port, primary, auth_users, instance_url))
thread_main.start()
if __name__ == '__main__':
app.run(host='127.0.0.1', port=flask_port)