From e789a83967991ac6fb6424ef38c51c02c3729df6 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 7 Jan 2025 19:46:51 +0100 Subject: [PATCH] Fix --- src/modules/stream_notifications/twitch/webhook.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/stream_notifications/twitch/webhook.py b/src/modules/stream_notifications/twitch/webhook.py index f891d32..1d52511 100644 --- a/src/modules/stream_notifications/twitch/webhook.py +++ b/src/modules/stream_notifications/twitch/webhook.py @@ -1,4 +1,4 @@ -from asyncio import sleep, gather +from asyncio import sleep, gather, wait_for import logging from typing import NoReturn, Literal @@ -137,7 +137,8 @@ class TwitchService: await self._check_token() finally: logger.info("Twitch service stopping...") - await self.stop(eventsub) + + await wait_for(self.stop(eventsub), timeout=5) @classmethod async def start(cls):