diff options
| author | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2024-02-09 20:33:47 +0000 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-02-14 16:43:34 -0500 |
| commit | 8987076c5f0ddf18e8ea7a02d95395fa1097edb1 (patch) | |
| tree | 1211dcb27ca069a358fcf7e0038fbff5ff0df96f /backend/decky_loader/plugin/sandboxed_plugin.py | |
| parent | ec41c6121956afc4eb33c9f21905cdce4c07a097 (diff) | |
| download | decky-loader-8987076c5f0ddf18e8ea7a02d95395fa1097edb1.tar.gz decky-loader-8987076c5f0ddf18e8ea7a02d95395fa1097edb1.zip | |
Revert "Call plugin unload function after stopping event loop (#539)" (#584)
This reverts commit 39f4f2870b4c0924421130a3f532c07320938e97 , because functions (seemingly) don't run after the event loop closes, so the unload function is never actually run.
Diffstat (limited to 'backend/decky_loader/plugin/sandboxed_plugin.py')
| -rw-r--r-- | backend/decky_loader/plugin/sandboxed_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/decky_loader/plugin/sandboxed_plugin.py b/backend/decky_loader/plugin/sandboxed_plugin.py index f1b3f09d..f83636f1 100644 --- a/backend/decky_loader/plugin/sandboxed_plugin.py +++ b/backend/decky_loader/plugin/sandboxed_plugin.py @@ -143,11 +143,11 @@ class SandboxedPlugin: if "stop" in data: self.log.info("Calling Loader unload function.") + await self._unload() get_event_loop().stop() while get_event_loop().is_running(): await sleep(0) get_event_loop().close() - await self._unload() raise Exception("Closing message listener") d: SocketResponseDict = {"type": SocketMessageType.RESPONSE, "res": None, "success": True, "id": data["id"]} |
