i think this is nicer, wby?
This commit is contained in:
parent
4cf3eac4d1
commit
d8a89c3814
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user