fix(sim): ensure to update the state before setting the status to finished

This commit is contained in:
wakonig_k 2024-11-19 08:41:25 +01:00
parent c4d90a2527
commit 2e8ddbb1ad

View File

@ -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: