added debug message

This commit is contained in:
Carsten Burgard 2022-04-15 16:06:22 +02:00
parent 60ef54d8e4
commit 8b90fb8e34

View File

@ -331,6 +331,7 @@ class Plex(commands.Cog):
bot_log.debug("failed to pop queue")
if not self.current_track and self.loop_queue:
bot_log.debug("swapping loop queue and play queue")
try:
self.current_track = await self.loop_queue.get()
except CancelledError:
@ -392,7 +393,8 @@ class Plex(commands.Cog):
Raises:
None
"""
if self.loop_queue:
if self.current_track and self.loop_queue:
bot_log.debug("pushing into loop queue: "+str(self.current_track))
self.bot.loop.call_soon_threadsafe(self.loop_queue.put,self.current_track)
self.current_track = None
self.bot.loop.call_soon_threadsafe(self.play_next_event.set)