summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-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 {