From 3c32d1106ec8e4f4b5494441c1ebf53dfd948c61 Mon Sep 17 00:00:00 2001 From: appel_c Date: Wed, 3 Sep 2025 10:33:05 +0200 Subject: [PATCH] w --- superxas_bec/devices/timepix/timepix.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index ef38649..abce52a 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -76,7 +76,8 @@ class AndStatus(StatusBase): self.set_finished() for st in self.all_statuses: - st.add_callback(inner) + with st._lock: + st.add_callback(inner) def __repr__(self): return "({self.left!r} & {self.right!r})".format(self=self)