diff options
-rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 | { |