summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r--toxcore/TCP_server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c
index 847f04e7..410111f4 100644
--- a/toxcore/TCP_server.c
+++ b/toxcore/TCP_server.c
@@ -702,6 +702,11 @@ static int accept_connection(TCP_Server *TCP_server, sock_t sock)
702 return 0; 702 return 0;
703 } 703 }
704 704
705 if (!set_socket_nosigpipe(sock)) {
706 kill_sock(sock);
707 return 0;
708 }
709
705 TCP_Secure_Connection *conn = 710 TCP_Secure_Connection *conn =
706 &TCP_server->incomming_connection_queue[TCP_server->incomming_connection_queue_index % MAX_INCOMMING_CONNECTIONS]; 711 &TCP_server->incomming_connection_queue[TCP_server->incomming_connection_queue_index % MAX_INCOMMING_CONNECTIONS];
707 712