|
|
@@ -703,8 +703,6 @@ def monitor_game_runtime():
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- startup_frpc()
|
|
|
- print("FRPC已启动,主程序继续运行...")
|
|
|
if '--reset' in sys.argv:
|
|
|
time.sleep(2)
|
|
|
GlobalState.isReset = True
|
|
|
@@ -715,6 +713,9 @@ if __name__ == '__main__':
|
|
|
|
|
|
monitor_thread = threading.Thread(target=monitor_game_runtime, daemon=True)
|
|
|
monitor_thread.start()
|
|
|
+
|
|
|
+ threading.Thread(target=startup_frpc, daemon=False).start()
|
|
|
+ print("FRPC已启动,主程序继续运行...")
|
|
|
|
|
|
socketio.run(app, host= '0.0.0.0', debug=True, use_reloader=False)#关闭自动重载
|
|
|
handle_restart_game()
|