Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Ruzafa committed May 4, 2024
1 parent 3e7cbdb commit 46df8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void Server::handleClientDisconnection(int clientFd) {

// Close clientFd and remove it from the poll_fds array
if (clientFd != -1) {
std::vector<struct pollfd>::const_iterator pollIt = _fds.begin();
std::vector<struct pollfd>::iterator pollIt = _fds.begin();
while (pollIt != _fds.end() && pollIt->fd != clientFd)
++pollIt;
if (pollIt != _fds.end()) {
Expand Down

0 comments on commit 46df8ed

Please sign in to comment.