From 0a5348bac8b7fa6d72bd3624ce43fb817c7c93e0 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 8 Jul 2002 22:56:41 +0000 Subject: [PATCH] input_thread no longer attempts to recv on invalid socket descriptor. --- src/sbbs3/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 64642efd93..687ae1e6f4 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -771,6 +771,11 @@ void input_thread(void *arg) break; } + if(sbbs->client_socket==INVALID_SOCKET) { + pthread_mutex_unlock(&sbbs->input_thread_mutex); + break; + } + rd=RingBufFree(&sbbs->inbuf); if(!rd) { // input buffer full -- GitLab