w
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user