Skip to content

Commit 95ef1ea

Browse files
committed
WIP
1 parent 51067ee commit 95ef1ea

File tree

1 file changed

+4
-0
lines changed
  • src/desktop_notifier/backends

1 file changed

+4
-0
lines changed

src/desktop_notifier/backends/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ async def _timeout_task(self, identifier: str, timeout: float) -> None:
106106
This asyncio task might be cancelled by :meth:`_clear_notification_from_cache`.
107107
"""
108108
await asyncio.sleep(timeout)
109+
110+
# manually call handle_cleared() so that the event isn't misidentified as dismissal
111+
self.handle_cleared(identifier)
112+
109113
await self._clear(identifier)
110114

111115
def _clear_notification_from_cache(

0 commit comments

Comments
 (0)