diff --git a/src/controller/controller_statistics.cpp b/src/controller/controller_statistics.cpp index 71a2a1ee..37603358 100644 --- a/src/controller/controller_statistics.cpp +++ b/src/controller/controller_statistics.cpp @@ -126,7 +126,10 @@ void Controller::SharedMemStats(void * config){ Util::wait(1000); } statPointer = 0; - DEBUG_MSG(DLVL_HIGH, "Stopping stats thread"); + HIGH_MSG("Stopping stats thread"); + if (Controller::restarting){ + statServer.abandon(); + } } /// Updates the given active connection with new stats data.