From: Torsten Dreyer Date: Fri, 12 Sep 2014 20:58:30 +0000 (+0200) Subject: Expose the running-state of the internal webserver X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=512ec61e8e6bbaa1172b267f05d1e19882170d37;p=flightgear.git Expose the running-state of the internal webserver --- 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();