summaryrefslogtreecommitdiff
path: root/core/Lossless_UDP.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/Lossless_UDP.c')
-rw-r--r--core/Lossless_UDP.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c
index 0194375a..fd17c0c0 100644
--- a/core/Lossless_UDP.c
+++ b/core/Lossless_UDP.c
@@ -428,7 +428,7 @@ int handle_handshake(uint8_t * packet, uint32_t length, IP_Port source)
428 memcpy(&temp, packet + 5, 4); 428 memcpy(&temp, packet + 5, 4);
429 handshake_id2 = ntohl(temp); 429 handshake_id2 = ntohl(temp);
430 430
431 if (handshake_id2 == 0) { 431 if (handshake_id2 == 0 && is_connected(connection) < 3) {
432 send_handshake(source, handshake_id(source), handshake_id1); 432 send_handshake(source, handshake_id(source), handshake_id1);
433 return 0; 433 return 0;
434 } 434 }