Setting new event loop

This commit is contained in:
Rafael Vargas 2022-07-25 21:59:09 -03:00
parent 48d7166386
commit 4a22b43ce9

View File

@ -70,7 +70,8 @@ class PlayerProcess(Process):
try:
print(f'Starting Process {self.name}')
self.__playerLock = RLock()
self.__loop = asyncio.get_event_loop()
self.__loop = asyncio.get_event_loop_policy().new_event_loop()
asyncio.set_event_loop(self.__loop)
self.__configs = Configs()
self.__messages = Messages()