From 1c0e0737b49b8f58fd5bd9d1797e842ff973de6e Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 21 Aug 2020 18:21:02 -0400 Subject: do not need to check program_mode here --- client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 154c1c5..1359e31 100644 --- a/client.c +++ b/client.c @@ -290,8 +290,9 @@ void client_connected_loop_iteration(uint32_t friendnumber) fds = client_master_fdset; /* Handle accepting new connections */ - if(program_mode != Mode_Client_Ping && client_tunnel.sockfd <= 0) /* Don't accept if we're already waiting to establish a tunnel */ + if(client_tunnel.sockfd <= 0) /* Don't accept if we're already waiting to establish a tunnel */ { + log_printf(L_DEBUG, "calling accept(%d)", bind_sockfd); accept_fd = accept(bind_sockfd, NULL, NULL); if(accept_fd != -1) { -- cgit v1.2.3