diff --git a/main.cpp b/main.cpp index aace0d2..e5b6443 100644 --- a/main.cpp +++ b/main.cpp @@ -20,7 +20,7 @@ int main(int argc, char* argv[]) { try { server.start(); - while (!server.shouldStop() || !shouldStop) { + while (!server.shouldStop() && !shouldStop) { usleep(500'000); }