React to both yz and toz stop commands

This commit is contained in:
2026-02-25 16:30:57 +01:00
parent 493095331f
commit 7c951a2f14

View File

@@ -160,7 +160,7 @@ class ESSSerializer:
)
self.producer.flush()
if isinstance(command, Stop):
if command.hist_id == self._active_histogram_yz:
if command.hist_id in [self._active_histogram_yz, self._active_histogram_tofz]:
self.count_stopped.set()
else:
return