diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/network.c | 2 |
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; |