Fixing error in sending commands to closed process queue

This commit is contained in:
Rafael Vargas
2022-07-31 19:50:59 -04:00
parent 5b61947904
commit 4fd23c56b6
9 changed files with 49 additions and 7 deletions

View File

@@ -247,6 +247,7 @@ class PlayerProcess(Process):
if self.__guild.voice_client.is_connected():
with self.__playlistLock:
self.__playlist.loop_off()
self.__playlist.clear()
# Send a command to the main process put this to sleep
sleepCommand = VCommands(VCommandsType.SLEEPING)