This commit is contained in:
2024-02-06 12:21:19 +01:00
parent 9c8142c48b
commit cc8c186d9d

View File

@@ -6,7 +6,7 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 09:31:17 by maldavid #+# #+# */
/* Updated: 2024/02/06 11:37:58 by vvaas ### ########.fr */
/* Updated: 2024/02/06 12:21:13 by vvaas ### ########.fr */
/* */
/******************************************************************************/
@@ -244,13 +244,7 @@ namespace irc
(*it)->kill("Server shutting down");
}
closeMainSocket();
for(int i = 0; i < FD_MAX; ++i)
{
if (FD_ISSET(i, &_fd_set))
{
close(i);
FD_CLR(i, &_fd_set);
}
}
for(int i = 3; i <= FD_MAX; ++i)
close(i);
}
}