Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit ddd74176 authored by deuce's avatar deuce
Browse files

Move input_thread_mutex unlocking to before a possible continue.

parent 3c51e604
......@@ -1271,6 +1271,12 @@ void input_thread(void *arg)
if(sbbs->client_socket==INVALID_SOCKET)
break;
if(sbbs->client_socket==INVALID_SOCKET) {
if(pthread_mutex_unlock(&sbbs->input_thread_mutex)!=0)
sbbs->errormsg(WHERE,ERR_UNLOCK,"input_thread_mutex",0);
break;
}
if(FD_ISSET(sbbs->client_socket,&socket_set))
sock=sbbs->client_socket;
#ifdef __unix__
......@@ -1288,12 +1294,6 @@ void input_thread(void *arg)
else
continue;
if(sbbs->client_socket==INVALID_SOCKET) {
if(pthread_mutex_unlock(&sbbs->input_thread_mutex)!=0)
sbbs->errormsg(WHERE,ERR_UNLOCK,"input_thread_mutex",0);
break;
}
rd=RingBufFree(&sbbs->inbuf);
if(!rd) { // input buffer full
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment