forked from Mirrors/openclonk
Improve "could not find connection" error message
parent
1925f47440
commit
5d803d3be3
|
@ -587,7 +587,11 @@ void C4Network2IO::OnPacket(const class C4NetIOPacket &rPacket, C4NetIO *pNetIO)
|
|||
if (!rPacket.getSize()) return;
|
||||
// find connection
|
||||
C4Network2IOConnection *pConn = GetConnection(rPacket.getAddr(), pNetIO);
|
||||
if (!pConn) { Application.InteractiveThread.ThreadLog("Network: could not find connection for packet from %s!", rPacket.getAddr().ToString().getData()); return; }
|
||||
if (!pConn)
|
||||
{
|
||||
Application.InteractiveThread.ThreadLog("Network: could not find connection for %s packet (status %02x) from %s!", getNetIOName(pNetIO), rPacket.getStatus(), rPacket.getAddr().ToString().getData());
|
||||
return;
|
||||
}
|
||||
#if(C4NET2IO_DUMP_LEVEL > 2)
|
||||
uint32_t iFindConnectionBlocked = C4TimeMilliseconds::Now() - tTime;
|
||||
if (iFindConnectionBlocked > 100)
|
||||
|
|
Loading…
Reference in New Issue