fix(device base): shut down task handler on destroy

This commit is contained in:
2025-06-16 13:40:26 +02:00
committed by Klaus Wakonig
parent cb7f7ba932
commit 3a086eee51
2 changed files with 3 additions and 2 deletions

View File

@@ -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()
########################################