Upgrading Player Stability

This commit is contained in:
Rafael Vargas
2023-01-27 10:22:07 -03:00
parent 75de60470f
commit 2ffbab86eb
3 changed files with 107 additions and 65 deletions

View File

@@ -99,7 +99,7 @@ class ProcessManager(Singleton):
def __stopPossiblyRunningProcess(self, guild: Guild):
try:
if guild.id in self.__playersProcess.keys():
playerProcess = self.__playersProcess.popitem(guild.id)
playerProcess = self.__playersProcess[guild.id]
process = playerProcess.getProcess()
process.close()
process.kill()