fix: fix FARA segfault !!!

This commit is contained in:
3lswear
2022-02-23 22:44:16 +03:00
parent 4af179523f
commit f79e37c5e6
2 changed files with 13 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ class Server
struct timeval last_modif;
}t_tmp_fd;
bool TimeToDie(struct timeval &last_modif, int lifeTime);
int delete_fd(std::map<int, t_tmp_fd *> &map, int fd);
int delete_fd(std::map<int, t_tmp_fd *> &map, std::map<int, t_tmp_fd *>::iterator &it);
std::map<int, t_tmp_fd *> free_socket;
public: