1
0
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:
lidgren
2012-05-26 09:08:04 +00:00
parent 5859971a7e
commit a5781b4688
3 changed files with 21 additions and 1 deletions

View File

@@ -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