Commit acef1d11 authored by Pavel Vainerman's avatar Pavel Vainerman

UNet2: восстановил в sender-е случайно стёртую проверку на MaxPacketNum

parent 5ff836bd
......@@ -135,6 +135,9 @@ void UNetSender::real_send()
{
mypack.msg.header.num = packetnum++;
if( packetnum > UniSetUDP::MaxPacketNum )
packetnum = 1;
// cout << "************* send header: " << mypack.msg.header << endl;
int sz = mypack.byte_size() + sizeof(UniSetUDP::UDPHeader);
if( !udp->isPending(ost::Socket::pendingOutput) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment