fix voted_sensors_update: remove DevMgr::releaseHandle(h);

the 'continue' continues with the inner loop, whereas the outer loop is
responsible for opening the handle. Thus the inner loop needs to keep it
open.
This commit is contained in:
Beat Küng
2017-06-14 08:24:44 +02:00
committed by Lorenz Meier
parent af6846b9a8
commit 76f593afb0
@@ -254,7 +254,6 @@ void VotedSensorsUpdate::parameters_update()
failed = failed || (OK != param_get(param_find(str), &device_id));
if (failed) {
DevMgr::releaseHandle(h);
continue;
}
@@ -337,7 +336,6 @@ void VotedSensorsUpdate::parameters_update()
failed = failed || (OK != param_get(param_find(str), &device_id));
if (failed) {
DevMgr::releaseHandle(h);
continue;
}
@@ -421,7 +419,6 @@ void VotedSensorsUpdate::parameters_update()
failed = failed || (OK != param_get(param_find(str), &device_id));
if (failed) {
DevMgr::releaseHandle(h);
continue;
}