Expose the running-state of the internal webserver
This commit is contained in:
parent
b50b1a778b
commit
512ec61e8e
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue