diff --git a/src/core/CNProtocol.cpp b/src/core/CNProtocol.cpp index f1b98d7..c15fdb7 100644 --- a/src/core/CNProtocol.cpp +++ b/src/core/CNProtocol.cpp @@ -473,6 +473,10 @@ void CNServer::start() { } else { std::lock_guard lock(activeCrit); // protect operations on connections + // halt packet handling if server is shutting down + if (!active) + return; + // player sockets if (connections.find(fds[i].fd) == connections.end()) { std::cout << "[WARN] Event on non-existant socket?" << std::endl;