mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
networking_poll: receivepacket(&ip_port, data, &length) == -1
This commit is contained in:
parent
da01bafc83
commit
8f6f8e221d
|
@ -101,7 +101,7 @@ void networking_poll()
|
|||
uint8_t data[MAX_UDP_PACKET_SIZE];
|
||||
uint32_t length;
|
||||
|
||||
while (receivepacket(&ip_port, data, &length))
|
||||
while (receivepacket(&ip_port, data, &length) != -1)
|
||||
{
|
||||
if (length < 1) continue;
|
||||
if (!packethandlers[data[0]]) continue;
|
||||
|
|
Loading…
Reference in New Issue
Block a user