mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-13 22:33:32 +00:00
Fix short freeze when disconnecting from a server
This commit is contained in:
parent
07738b61d2
commit
3578f17373
1 changed files with 7 additions and 0 deletions
|
@ -485,6 +485,13 @@ void Net_CloseConnection(INT32 node)
|
|||
|
||||
nodes[node].flags |= NF_CLOSE;
|
||||
|
||||
if (server)
|
||||
{
|
||||
// send a PT_NOTHING back to acknowledge the packet
|
||||
netbuffer->packettype = PT_NOTHING;
|
||||
HSendPacket(node, false, 0, 0);
|
||||
}
|
||||
|
||||
// check if we are waiting for an ack from this node
|
||||
for (INT32 i = 0; i < MAXACKPACKETS; i++)
|
||||
if (ackpak[i].acknum && ackpak[i].destinationnode == node)
|
||||
|
|
Loading…
Reference in a new issue