From 759a99edcfc467e3f2dc7e314b9623008d43698e Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Tue, 5 Nov 2024 20:59:11 +0800 Subject: [PATCH] Uncomment return and don't close peer socket if created --- net.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net.c b/net.c index 216350e..032de69 100644 --- a/net.c +++ b/net.c @@ -98,9 +98,7 @@ int net_listen_clients() "Peer socket address:\n%s:%d", inet_ntoa(peer_info.addr.sin_addr), ntohs(peer_info.addr.sin_port)); - close(peer_info.socket); - peer_info.socket = -1; - //return 1; + return 1; } peer_info.socket = socket(AF_INET, SOCK_DGRAM, 0);