From 512ec61e8e6bbaa1172b267f05d1e19882170d37 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer <Torsten@t3r.de> Date: Fri, 12 Sep 2014 22:58:30 +0200 Subject: [PATCH] Expose the running-state of the internal webserver --- src/Network/http/httpd.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Network/http/httpd.cxx b/src/Network/http/httpd.cxx index cc79f3dee..99bcfa69a 100644 --- a/src/Network/http/httpd.cxx +++ b/src/Network/http/httpd.cxx @@ -504,6 +504,8 @@ void MongooseHttpd::init() } + _configNode->setBoolValue("running",true); + } void MongooseHttpd::bind() @@ -512,6 +514,7 @@ void MongooseHttpd::bind() void MongooseHttpd::unbind() { + _configNode->setBoolValue("running",false); mg_destroy_server(&_server); _uriHandler.clear(); _propertyChangeObserver.clear();