mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-12 04:31:56 +00:00
This reverts commit 39f4f2870b , because functions (seemingly) don't run after the event loop closes, so the unload function is never actually run.
This commit is contained in:
@@ -143,11 +143,11 @@ class SandboxedPlugin:
|
|||||||
|
|
||||||
if "stop" in data:
|
if "stop" in data:
|
||||||
self.log.info("Calling Loader unload function.")
|
self.log.info("Calling Loader unload function.")
|
||||||
|
await self._unload()
|
||||||
get_event_loop().stop()
|
get_event_loop().stop()
|
||||||
while get_event_loop().is_running():
|
while get_event_loop().is_running():
|
||||||
await sleep(0)
|
await sleep(0)
|
||||||
get_event_loop().close()
|
get_event_loop().close()
|
||||||
await self._unload()
|
|
||||||
raise Exception("Closing message listener")
|
raise Exception("Closing message listener")
|
||||||
|
|
||||||
d: SocketResponseDict = {"type": SocketMessageType.RESPONSE, "res": None, "success": True, "id": data["id"]}
|
d: SocketResponseDict = {"type": SocketMessageType.RESPONSE, "res": None, "success": True, "id": data["id"]}
|
||||||
|
|||||||
Reference in New Issue
Block a user