Adding missing docstring to the watchdog event

This commit is contained in:
Filipi Fuchter
2025-07-01 17:12:18 -03:00
parent 721f662bbe
commit b87c57c951

View File

@@ -62,6 +62,7 @@ class WatchdogEvent(asyncio.Event):
self._manager.task_reset_watchdog()
def clear(self):
"""Clear the event while resetting watchdog timer."""
if self._manager.task_watchdog_enabled:
self._manager.task_reset_watchdog()
super().clear()