Skip to content
Snippets Groups Projects
Commit 0a5348ba authored by rswindell's avatar rswindell
Browse files

input_thread no longer attempts to recv on invalid socket descriptor.

parent ff5f3009
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment