mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 12:58:00 +03:00
fix: delete client
This commit is contained in:
@@ -227,8 +227,10 @@ void Server::run(void)
|
||||
if (events & EPOLLIN)
|
||||
{
|
||||
readSocket(*client_map[fd], fd);
|
||||
if (client_map[fd]->done || client_map[fd]->isEmpty())
|
||||
if (client_map[fd]->done)
|
||||
{
|
||||
delete_client(client_map, fd);
|
||||
}
|
||||
else if (client_map[fd]->readyToSend())
|
||||
{
|
||||
client_map[fd]->generateRespons(_configs);
|
||||
|
||||
Reference in New Issue
Block a user