From 26f4b2efd998f53ba97b47e68e4954d1bb4bc21c Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 22 Sep 2016 09:14:03 +0200 Subject: [PATCH] Stats pages are now left behind unclean on purpose on updating/restarting the controller, to preserve stats across restarts --- src/controller/controller_statistics.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.