mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fix
This commit is contained in:
parent
9f8b962e5d
commit
d5dc951747
|
@ -61,13 +61,16 @@ void Run(unsigned short Port, NETADDR Dest)
|
|||
dbg_msg("crapnet", "cfg = %d", n);
|
||||
Lastcfg = n;
|
||||
|
||||
MMSGS m;
|
||||
net_init_mmsgs(&m);
|
||||
|
||||
// handle incoming packets
|
||||
while(1)
|
||||
{
|
||||
// fetch data
|
||||
int DataTrash = 0;
|
||||
NETADDR From;
|
||||
int Bytes = net_udp_recv(Socket, &From, aBuffer, 1024*2);
|
||||
int Bytes = net_udp_recv(Socket, &From, aBuffer, 1024*2, &m);
|
||||
if(Bytes <= 0)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue