mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
fix: delete client data if client closes connection
This commit is contained in:
@@ -160,7 +160,7 @@ int Server::delete_fd(std::map<int, t_tmp_fd *> &map,
|
|||||||
<< it->first
|
<< it->first
|
||||||
<< ENDL;
|
<< ENDL;
|
||||||
close(it->first);
|
close(it->first);
|
||||||
// delete (client_map[it->first]);
|
delete client_map[it->first];
|
||||||
client_map.erase(it->first);
|
client_map.erase(it->first);
|
||||||
map.erase(it++);
|
map.erase(it++);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user