Skip to content

Commit ff35694

Browse files
committed
WIP
1 parent a7ca0f9 commit ff35694

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
@@ -113,6 +113,10 @@ async def _timeout_task(self, identifier: str, timeout: float) -> None:
113113
This asyncio task might be cancelled by :meth:`_clear_notification_from_cache`.
114114
"""
115115
await asyncio.sleep(timeout)
116+
117+
# manually call handle_cleared() so that the event isn't misidentified as dismissal
118+
self.handle_cleared(identifier)
119+
116120
await self._clear(identifier)
117121

118122
def _clear_notification_from_cache(

0 commit comments

Comments
 (0)