mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-23 11:27:57 +02:00
fix(sim): ensure to update the state before setting the status to finished
This commit is contained in:
@ -167,6 +167,7 @@ class SimPositioner(Device, PositionerBase):
|
||||
self._update_state(ii)
|
||||
if self._stopped:
|
||||
raise DeviceStopError(f"{self.name} was stopped")
|
||||
self._update_state(target)
|
||||
st.set_finished()
|
||||
# pylint: disable=broad-except
|
||||
except Exception as exc:
|
||||
|
Reference in New Issue
Block a user