🔨」 fix: corrected issue with ip in the main loop

This commit is contained in:
2025-04-22 16:35:52 +02:00
parent 81631d8290
commit b4eb64ca3f
3 changed files with 13 additions and 6 deletions

View File

@ -6,12 +6,13 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/11 16:11:40 by adjoly #+# #+# */
/* Updated: 2025/04/22 15:40:59 by adjoly ### ########.fr */
/* Updated: 2025/04/22 16:34:40 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <cerrno>
#include <cmath>
#include <exception>
#include <fcntl.h>
#include <iterator>
#include <log.hpp>
@ -145,8 +146,12 @@ void Server::_run(void) {
Server::Server(config::Config *conf) : _conf(conf) {
log("", "Server::Server", "config constructor called");
_log = conf->getLogger();
_setup();
_run();
try {
_setup();
_run();
} catch (std::exception &e) {
_log->error(e.what());
}
}
Server::~Server(void) {