PluginServices: Do not throw if device control cannot be released

This commit is contained in:
Dennis Klein
2019-07-28 11:56:02 +02:00
committed by Dennis Klein
parent 93eb599df7
commit 008be36125
4 changed files with 7 additions and 6 deletions

View File

@@ -74,7 +74,8 @@ auto PluginServices::ReleaseDeviceControl(const string& controller) -> void
if (fDeviceController == controller) {
fDeviceController = boost::none;
} else {
throw DeviceControlError{tools::ToString("Plugin '", controller, "' cannot release control because it has not taken over control.")};
LOG(debug) << "Plugin '" << controller << "' cannot release control "
<< "because it has no control.";
}
}