mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 21:22:01 +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:
@@ -118,11 +118,11 @@ class PluginWrapper:
|
|||||||
|
|
||||||
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")
|
||||||
|
|
||||||
# TODO there is definitely a better way to type this
|
# TODO there is definitely a better way to type this
|
||||||
|
|||||||
Reference in New Issue
Block a user