Core/NetworkPackage/GameNetSystem.cs
@@ -15,9 +15,11 @@ DisconnectState disconnectState; NetState m_NetState; public NetState netState { public NetState netState { get { return this.m_NetState; } set { set { if (this.m_NetState != value) { switch (m_NetState) @@ -99,10 +101,17 @@ public void BeginConnectGameServer(string _ip, int _port, Action _onConnected) { try { if (socketController != null && socketController.Connected) { socketController.CloseConnect(); } } catch (System.Exception ex) { DebugEx.Log(ex); } socketController = new ClientSocketController();