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
Flushing delayed packets when shutting down NetPeer
This commit is contained in:
@@ -212,9 +212,13 @@ namespace Lidgren.Network
|
||||
}
|
||||
}
|
||||
|
||||
FlushDelayedPackets();
|
||||
|
||||
// one final heartbeat, will send stuff and do disconnect
|
||||
Heartbeat();
|
||||
|
||||
Thread.Sleep(10);
|
||||
|
||||
lock (m_initializeLock)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user