networking_poll: receivepacket(&ip_port, data, &length) == -1

This commit is contained in:
slvr 2013-08-10 03:02:00 +01:00
parent da01bafc83
commit 8f6f8e221d

View File

@ -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;