You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-06 02:11:06 +09:00
Fixed issue with disconnected by server
This commit is contained in:
@@ -108,6 +108,7 @@ namespace Lidgren.Network
|
||||
SetStatus(NetConnectionStatus.Disconnected, reason);
|
||||
|
||||
// in case we're still in handshake
|
||||
lock (m_peer.m_handshakes)
|
||||
m_peer.m_handshakes.Remove(m_remoteEndpoint);
|
||||
|
||||
m_disconnectRequested = false;
|
||||
@@ -371,7 +372,7 @@ namespace Lidgren.Network
|
||||
catch
|
||||
{
|
||||
}
|
||||
SetStatus(NetConnectionStatus.Disconnected, reason);
|
||||
ExecuteDisconnect(reason, false);
|
||||
break;
|
||||
default:
|
||||
m_peer.LogDebug("Unhandled type during handshake: " + tp + " length: " + payloadLength);
|
||||
|
||||
Reference in New Issue
Block a user