fix: error when play next
This commit is contained in:
parent
7d158ff40e
commit
ca07ed0dd3
@ -355,7 +355,10 @@ class XiaoMusic:
|
|||||||
|
|
||||||
async def _do_next():
|
async def _do_next():
|
||||||
await asyncio.sleep(self._timeout)
|
await asyncio.sleep(self._timeout)
|
||||||
|
try:
|
||||||
await self.play_next()
|
await self.play_next()
|
||||||
|
except Exception as e:
|
||||||
|
self.log.warning(f"执行出错 {str(e)}\n{traceback.format_exc()}")
|
||||||
|
|
||||||
self._next_timer = asyncio.ensure_future(_do_next())
|
self._next_timer = asyncio.ensure_future(_do_next())
|
||||||
self.log.info(f"{sec}秒后将会播放下一首")
|
self.log.info(f"{sec}秒后将会播放下一首")
|
||||||
|
Loading…
Reference in New Issue
Block a user