diff --git a/src/Server.cpp b/src/Server.cpp index 8cacccf..d2e9245 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -207,7 +207,7 @@ void Server::handleClientDisconnection(int clientFd) { // Close clientFd and remove it from the poll_fds array if (clientFd != -1) { - std::vector::const_iterator pollIt = _fds.begin(); + std::vector::iterator pollIt = _fds.begin(); while (pollIt != _fds.end() && pollIt->fd != clientFd) ++pollIt; if (pollIt != _fds.end()) {