mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
修复了KCPClientNetwork断开网络连接会发生异常的问题
修复了KCPClientNetwork断开网络连接会发生异常的问题
This commit is contained in:
@@ -56,7 +56,6 @@ namespace TEngine.Core.Network
|
|||||||
ThreadSynchronizationContext.Main.Post(OnConnectDisconnect);
|
ThreadSynchronizationContext.Main.Post(OnConnectDisconnect);
|
||||||
}
|
}
|
||||||
|
|
||||||
_socket.Disconnect(false);
|
|
||||||
_socket.Close();
|
_socket.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user