fix(sim): ensure to update the state before setting the status to finished
This commit is contained in:
parent
c4d90a2527
commit
2e8ddbb1ad
@ -167,6 +167,7 @@ class SimPositioner(Device, PositionerBase):
|
|||||||
self._update_state(ii)
|
self._update_state(ii)
|
||||||
if self._stopped:
|
if self._stopped:
|
||||||
raise DeviceStopError(f"{self.name} was stopped")
|
raise DeviceStopError(f"{self.name} was stopped")
|
||||||
|
self._update_state(target)
|
||||||
st.set_finished()
|
st.set_finished()
|
||||||
# pylint: disable=broad-except
|
# pylint: disable=broad-except
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user