add debug print to missed packet sending

maybe recursion is killing it, we'll see!
This commit is contained in:
Lion Kortlepel 2021-03-30 14:59:39 +02:00
parent e73d578797
commit 2c06a98e00

View File

@ -342,6 +342,7 @@ bool TNetwork::TCPSend(TClient& c, const std::string& Data, bool IsSync) {
c.EnqueueMissedPacketDuringSyncing(Data);
return true;
} else if (!c.IsSyncing() && c.IsSynced() && c.MissedPacketQueueSize() != 0) {
debug("sending " + std::to_string(c.MissedPacketQueueSize()) + " missed packets");
while (c.MissedPacketQueueSize() > 0) {
std::string QData = c.MissedPacketQueue().front();
c.MissedPacketQueue().pop();