1
0
Fork 0

Expose the running-state of the internal webserver

This commit is contained in:
Torsten Dreyer 2014-09-12 22:58:30 +02:00
parent b50b1a778b
commit 512ec61e8e

View file

@ -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();