From 62839f1bd95b2dfc43cffd7dfa8b1326cc87ef8b Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 1 Jul 2013 10:55:39 -0400 Subject: Small changes. --- core/Lossless_UDP.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c index 9af097d3..bf9fa893 100644 --- a/core/Lossless_UDP.c +++ b/core/Lossless_UDP.c @@ -563,17 +563,15 @@ int handle_SYNC(char * packet, uint32_t length, IP_Port source) } if(connection == -1) { - handle_SYNC1(source, recv_packetnum, sent_packetnum); - return 0; + return handle_SYNC1(source, recv_packetnum, sent_packetnum); } if(connections[connection].status == 2) { - handle_SYNC2(connection, counter, recv_packetnum, sent_packetnum); - return 0; + return handle_SYNC2(connection, counter, recv_packetnum, sent_packetnum); } if(connections[connection].status == 3) { - handle_SYNC3(connection, counter, recv_packetnum, sent_packetnum, req_packets, number); + return handle_SYNC3(connection, counter, recv_packetnum, sent_packetnum, req_packets, number); } return 0; } -- cgit v1.2.3