i think this is nicer, wby?

This commit is contained in:
Quinten 2025-10-26 19:18:26 +01:00
parent 4cf3eac4d1
commit d8a89c3814

View File

@ -310,17 +310,13 @@ void Server::run()
Log::info("Listening..."); Log::info("Listening...");
const int MAX_EVENTS = 10; const int MAX_EVENTS = 10;
struct epoll_event events[MAX_EVENTS]; // NOLINT struct epoll_event events[MAX_EVENTS]; // NOLINT
while (true) while (stop_ == 0)
{ {
if (stop_ != 0)
{
Log::info("Server stopping...");
break;
}
pollSockets(); pollSockets();
pollClients(); pollClients();
handleEpoll(events, MAX_EVENTS); // NOLINT (cppcoreguidelines-pro-bounds-pointer-arithmetic) handleEpoll(events, MAX_EVENTS); // NOLINT (cppcoreguidelines-pro-bounds-pointer-arithmetic)
} }
Log::info("Server stopping...");
} }
void Server::signalHandler(int signum) void Server::signalHandler(int signum)