1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 02:11:06 +09:00

Delaying local Disconnect until next heartbeat

This commit is contained in:
lidgren
2014-11-20 10:14:59 +00:00
parent 740cc2ec1b
commit 9f6d3e79fd
2 changed files with 9 additions and 3 deletions

View File

@@ -8,8 +8,9 @@ namespace Lidgren.Network
{
internal bool m_connectRequested;
internal bool m_disconnectRequested;
internal bool m_connectionInitiator;
internal bool m_disconnectReqSendBye;
internal string m_disconnectMessage;
internal bool m_connectionInitiator;
internal NetIncomingMessage m_remoteHailMessage;
internal float m_lastHandshakeSendTime;
internal int m_handshakeAttempts;
@@ -486,6 +487,7 @@ namespace Lidgren.Network
m_handshakeAttempts = 0;
m_disconnectRequested = true;
m_disconnectReqSendBye = true;
}
}
}