Skip to content

Commit

Permalink
fix: remove client using function
Browse files Browse the repository at this point in the history
  • Loading branch information
PolisanTheEasyNick committed Nov 6, 2024
1 parent 5d28773 commit c315fe9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,7 @@ void send_info_about_color() {
perror("send");
logger_debug("Failed to send to client fd %d, removing client", clients_fds[client]);
close(clients_fds[client]);
for (int j = client; j < clients_count - 1; j++) {
clients_fds[j] = clients_fds[j + 1];
}
clients_count--;
client--;
remove_client_fd(clients_fds[client]);
}
}
}

0 comments on commit c315fe9

Please sign in to comment.