mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-02-03 22:08:39 +01:00
fix(device base): shut down task handler on destroy
This commit is contained in:
@@ -164,6 +164,7 @@ class PSIDeviceBase(Device):
|
||||
"""Destroy the device."""
|
||||
self.on_destroy() # Call the on_destroy method
|
||||
self._stop_stoppable_status_objects()
|
||||
self.task_handler.shutdown()
|
||||
return super().destroy()
|
||||
|
||||
########################################
|
||||
|
||||
Reference in New Issue
Block a user