Skip to content
Snippets Groups Projects
Commit 818d5599 authored by deuce's avatar deuce
Browse files

This just finished a one second timeout select() no need to YIELD() again

immediately.
parent 1e71a515
No related branches found
No related tags found
No related merge requests found
......@@ -1022,10 +1022,8 @@ void input_thread(void *arg)
if((i=select(sock+1,&socket_set,NULL,NULL,&tv))<1) {
pthread_mutex_unlock(&sbbs->input_thread_mutex);
if(i==0 && sock==sbbs->client_socket) {
YIELD();
if(i==0 && sock==sbbs->client_socket)
continue;
}
if(sock==sbbs->client_socket) {
if(ERROR_VALUE == ENOTSOCK)
......
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