start bot thread
parent
16c3119e22
commit
0f14c0242a
6
app.py
6
app.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue