summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorslvr <slvr@unsafeio.com>2013-08-10 03:02:00 +0100
committerslvr <slvr@unsafeio.com>2013-08-10 03:02:00 +0100
commit8f6f8e221d5a86c811f7fb7978d724bd12a9bf6a (patch)
treecf9833bb815f72c47e4047e089c05fd295608700 /core
parentda01bafc83045faf48d4d4f16b2ccc13a0af68c7 (diff)
networking_poll: receivepacket(&ip_port, data, &length) == -1
Diffstat (limited to 'core')
-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;