mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-07 15:13:52 -08:00
LADX: switch to asyncio.get_running_loop() (#5666)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user