diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index abce52a..cdbfe74 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -66,9 +66,10 @@ class AndStatus(StatusBase): for st in self.all_statuses: with st._lock: - if st.done and not st.success: - self.set_exception(st.exception()) - return + if not self.done: + if st.done and not st.success: + self.set_exception(st.exception()) + return if all(st.done for st in self.all_statuses) and all( st.success for st in self.all_statuses