fix: fix RuntimeWarning: coroutine 'Live.get_live_stream_url' was never awaited

This commit is contained in:
acgnhik 2023-02-19 12:28:13 +08:00
parent 486e2ba552
commit 74dd739ec7

View File

@ -183,7 +183,7 @@ class LiveMonitor(EventEmitter[LiveEventListener], DanmakuListener, SwitchableMi
async def _check_if_stream_available(self) -> None:
while not self._stream_available:
try:
self._live.get_live_stream_url()
await self._live.get_live_stream_url()
except Exception:
await asyncio.sleep(1)
else: