summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/network.c b/core/network.c
index 4dd6257a..89697e76 100644
--- a/core/network.c
+++ b/core/network.c
@@ -101,7 +101,7 @@ void networking_poll()
101 uint8_t data[MAX_UDP_PACKET_SIZE]; 101 uint8_t data[MAX_UDP_PACKET_SIZE];
102 uint32_t length; 102 uint32_t length;
103 103
104 while (receivepacket(&ip_port, data, &length)) 104 while (receivepacket(&ip_port, data, &length) != -1)
105 { 105 {
106 if (length < 1) continue; 106 if (length < 1) continue;
107 if (!packethandlers[data[0]]) continue; 107 if (!packethandlers[data[0]]) continue;