Skip to content

Commit

Permalink
added log more
Browse files Browse the repository at this point in the history
  • Loading branch information
haelime committed Mar 23, 2024
1 parent 509aa40 commit b88d632
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions srcs/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,11 @@ void Server::run()
Logger::log(DEBUG, "Finding clientData object");
ClientData* clientData = mFdToEveryClientDataMap[mEventVector[i].ident]; // cuz it's map, it's O(logN)
delete clientData;
Logger::log(DEBUG, "ClientData object deleted");
mFdToEveryClientDataMap.erase(mEventVector[i].ident);
Logger::log(DEBUG, "Client removed from map");
close(mEventVector[i].ident);
Logger::log(DEBUG, "Client socket closed");
// assert(0);
}
else if (mEventVector[i].flags & EVFILT_READ)
Expand Down

0 comments on commit b88d632

Please sign in to comment.