diff options
Diffstat (limited to 'core/Lossless_UDP.c')
-rw-r--r-- | core/Lossless_UDP.c | 8 |
1 files 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) | |||
563 | } | 563 | } |
564 | if(connection == -1) | 564 | if(connection == -1) |
565 | { | 565 | { |
566 | handle_SYNC1(source, recv_packetnum, sent_packetnum); | 566 | return handle_SYNC1(source, recv_packetnum, sent_packetnum); |
567 | return 0; | ||
568 | } | 567 | } |
569 | if(connections[connection].status == 2) | 568 | if(connections[connection].status == 2) |
570 | { | 569 | { |
571 | handle_SYNC2(connection, counter, recv_packetnum, sent_packetnum); | 570 | return handle_SYNC2(connection, counter, recv_packetnum, sent_packetnum); |
572 | return 0; | ||
573 | } | 571 | } |
574 | if(connections[connection].status == 3) | 572 | if(connections[connection].status == 3) |
575 | { | 573 | { |
576 | handle_SYNC3(connection, counter, recv_packetnum, sent_packetnum, req_packets, number); | 574 | return handle_SYNC3(connection, counter, recv_packetnum, sent_packetnum, req_packets, number); |
577 | } | 575 | } |
578 | return 0; | 576 | return 0; |
579 | } | 577 | } |