summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorParty Wumpus <48649272+PartyWumpus@users.noreply.github.com>2024-02-09 20:33:47 +0000
committerGitHub <noreply@github.com>2024-02-09 20:33:47 +0000
commit2500b748ce49b396844ea89832bf8500ff765434 (patch)
treed3ed7841d0c41eba9efb9914c0da09a7871838e8 /backend
parentfd4ed811be7871f85abbf6b8e86b8eb13b90cf94 (diff)
downloaddecky-loader-2500b748ce49b396844ea89832bf8500ff765434.tar.gz
decky-loader-2500b748ce49b396844ea89832bf8500ff765434.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')
-rw-r--r--backend/src/plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/plugin.py b/backend/src/plugin.py
index ed401b45..b57bc5f7 100644
--- a/backend/src/plugin.py
+++ b/backend/src/plugin.py
@@ -118,11 +118,11 @@ class PluginWrapper:
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")
# TODO there is definitely a better way to type this