Skip to content
Snippets Groups Projects
Commit c7a31419 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Only read readable sockets.

parent 1b52a130
Branches
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4147 passed
......@@ -29,7 +29,6 @@ rlogin_input_thread(void *args)
rd = recv(rlogin_sock, conn_api.rd_buf, conn_api.rd_buf_size, 0);
if (rd <= 0)
break;
}
buffered = 0;
while (rlogin_sock != INVALID_SOCKET && buffered < rd) {
pthread_mutex_lock(&(conn_inbuf.mutex));
......@@ -38,6 +37,7 @@ rlogin_input_thread(void *args)
pthread_mutex_unlock(&(conn_inbuf.mutex));
}
}
}
conn_api.input_thread_running = 2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment