This commit is contained in:
2025-01-07 19:46:51 +01:00
parent f8aa532d6a
commit e789a83967

View File

@@ -1,4 +1,4 @@
from asyncio import sleep, gather from asyncio import sleep, gather, wait_for
import logging import logging
from typing import NoReturn, Literal from typing import NoReturn, Literal
@@ -137,7 +137,8 @@ class TwitchService:
await self._check_token() await self._check_token()
finally: finally:
logger.info("Twitch service stopping...") logger.info("Twitch service stopping...")
await self.stop(eventsub)
await wait_for(self.stop(eventsub), timeout=5)
@classmethod @classmethod
async def start(cls): async def start(cls):