diff options
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r-- | toxcore/TCP_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c index f3cdd287..47e2ff27 100644 --- a/toxcore/TCP_server.c +++ b/toxcore/TCP_server.c | |||
@@ -411,10 +411,10 @@ static int write_packet_TCP_secure_connection(TCP_Secure_Connection *con, const | |||
411 | 411 | ||
412 | if (len <= 0) { | 412 | if (len <= 0) { |
413 | len = 0; | 413 | len = 0; |
414 | } else { | ||
415 | increment_nonce(con->sent_nonce); | ||
416 | } | 414 | } |
417 | 415 | ||
416 | increment_nonce(con->sent_nonce); | ||
417 | |||
418 | if (len == sizeof(packet)) { | 418 | if (len == sizeof(packet)) { |
419 | return 1; | 419 | return 1; |
420 | } | 420 | } |