summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/TCP_client.c')
-rw-r--r--toxcore/TCP_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c
index 02d4e7dc..45220538 100644
--- a/toxcore/TCP_client.c
+++ b/toxcore/TCP_client.c
@@ -231,10 +231,10 @@ static int write_packet_TCP_secure_connection(TCP_Client_Connection *con, const
231 231
232 if (len <= 0) { 232 if (len <= 0) {
233 len = 0; 233 len = 0;
234 } else {
235 increment_nonce(con->sent_nonce);
236 } 234 }
237 235
236 increment_nonce(con->sent_nonce);
237
238 if (len == sizeof(packet)) { 238 if (len == sizeof(packet)) {
239 return 1; 239 return 1;
240 } 240 }