diff options
Diffstat (limited to 'server_network.c')
-rw-r--r-- | server_network.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server_network.c b/server_network.c index 7a0b735..1afd370 100644 --- a/server_network.c +++ b/server_network.c @@ -158,8 +158,10 @@ void * server_accept_thread(void *type) { struct string address; void *con_handle; int con_fd = networks[net].accept(listen_fd, &con_handle, &address); - if (con_fd == -1) + if (con_fd == -1) { + sleep(60); continue; // TODO: Handle error + } pthread_t trash; struct server_connection_info *info; |