This commit is contained in:
2025-09-11 17:11:55 +02:00
parent 83c22e71f0
commit 8e652ff834
@@ -140,6 +140,12 @@ class TimepixFlyBackend:
"""Cleanup method to stop all running processes."""
self.timepix_fly_client.shutdown()
self._data_thread_shutdown_event.set()
if self._data_thread.is_alive():
self._data_thread.join(timeout=1)
if self._data_thread.is_alive():
logger.info(
f"Data thread poll loop of timepix_fly_client did not stop within 1 second."
)
if self._socket_server is not None:
try:
self._socket_server.close()