mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 04:05:04 +03:00
Add lock to internal socket fetch function
This commit is contained in:
@@ -19,6 +19,7 @@ class UnixSocket:
|
||||
self.reader = None
|
||||
self.writer = None
|
||||
self.server_writer = None
|
||||
self.open_lock = asyncio.Lock()
|
||||
|
||||
async def setup_server(self):
|
||||
try:
|
||||
@@ -42,6 +43,7 @@ class UnixSocket:
|
||||
return True
|
||||
|
||||
async def get_socket_connection(self):
|
||||
async with self.open_lock:
|
||||
if not await self._open_socket_if_not_exists():
|
||||
return None, None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user