summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-08-21 18:21:02 -0400
committerAndrew Cady <d@jerkface.net>2020-08-21 18:21:02 -0400
commit1c0e0737b49b8f58fd5bd9d1797e842ff973de6e (patch)
treec10f9d9edf37a3636d30a14f609ebe3ae28eb8c5
parent4dbabac9eccd43445808c583777ba853b1ad1155 (diff)
do not need to check program_mode here
-rw-r--r--client.c3
1 files changed, 2 insertions, 1 deletions
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)
290 fds = client_master_fdset; 290 fds = client_master_fdset;
291 291
292 /* Handle accepting new connections */ 292 /* Handle accepting new connections */
293 if(program_mode != Mode_Client_Ping && client_tunnel.sockfd <= 0) /* Don't accept if we're already waiting to establish a tunnel */ 293 if(client_tunnel.sockfd <= 0) /* Don't accept if we're already waiting to establish a tunnel */
294 { 294 {
295 log_printf(L_DEBUG, "calling accept(%d)", bind_sockfd);
295 accept_fd = accept(bind_sockfd, NULL, NULL); 296 accept_fd = accept(bind_sockfd, NULL, NULL);
296 if(accept_fd != -1) 297 if(accept_fd != -1)
297 { 298 {