mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user