LADX: switch to asyncio.get_running_loop() (#5666)

This commit is contained in:
threeandthreee
2025-11-24 16:42:31 -05:00
committed by GitHub
parent e60ea1765c
commit 447f8fba20

View File

@@ -136,7 +136,7 @@ class RAGameboy():
select.select([self.socket], [], [])
response, _ = self.socket.recvfrom(4096)
return response
async def async_recv(self, timeout=1.0):
response = await asyncio.wait_for(asyncio.get_running_loop().sock_recv(self.socket, 4096), timeout)
return response