Switch off regulators when closing session
This commit is contained in:
parent
717e4dd362
commit
acc24b5905
|
@ -46,7 +46,11 @@ class Regulator::Session_component : public Regulator::Session_rpc_object
|
||||||
/**
|
/**
|
||||||
* Destructor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
~Session_component() { _driver_factory.destroy(_driver); }
|
~Session_component()
|
||||||
|
{
|
||||||
|
_driver.state(_id, false);
|
||||||
|
_driver_factory.destroy(_driver);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***********************************
|
/***********************************
|
||||||
|
|
Loading…
Reference in New Issue