summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ManagementServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ManagementServer.cpp b/src/ManagementServer.cpp
index 9ebdfeb..ae3a0cb 100644
--- a/src/ManagementServer.cpp
+++ b/src/ManagementServer.cpp
@@ -277,7 +277,7 @@ void ManagementServer::serverThread()
std::string json = getStateJSON();
n = write(accepted_sock, json.c_str(), json.size());
}
- if (strcmp(buffer, "getptree\n") == 0) {
+ else if (strcmp(buffer, "getptree\n") == 0) {
boost::unique_lock<boost::mutex> lock(m_configmutex);
m_pending = true;