diff options
author | slvr <slvr@unsafeio.com> | 2013-08-10 03:02:00 +0100 |
---|---|---|
committer | slvr <slvr@unsafeio.com> | 2013-08-10 03:02:00 +0100 |
commit | 8f6f8e221d5a86c811f7fb7978d724bd12a9bf6a (patch) | |
tree | cf9833bb815f72c47e4047e089c05fd295608700 /core/network.c | |
parent | da01bafc83045faf48d4d4f16b2ccc13a0af68c7 (diff) |
networking_poll: receivepacket(&ip_port, data, &length) == -1
Diffstat (limited to 'core/network.c')
-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; |