This commit is contained in:
Denis 2023-12-13 02:13:20 +01:00
parent 330088f55d
commit 385301f5cf
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
2 changed files with 12 additions and 8 deletions

View file

@ -98,7 +98,7 @@ int main(int argc, char ** argv) {
if (pthread_mutex_lock(&dev_out_thread_data.communication.endpoint.ssocket.mutex) == 0) {
int i;
for (i = 0; i < MAX_CONNECTED_CLIENTS; ++i) {
if (dev_out_thread_data.communication.endpoint.ssocket.clients[i] == -1) {
if (dev_out_thread_data.communication.endpoint.ssocket.clients[i] < 0) {
dev_out_thread_data.communication.endpoint.ssocket.clients[i] = client_fd;
break;
}