mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 12:15:09 +03:00
fix start/stop methods
This commit is contained in:
@@ -65,14 +65,14 @@ class PluginWrapper:
|
||||
|
||||
return await request.wait_for_result()
|
||||
|
||||
async def start(self):
|
||||
def start(self):
|
||||
if self.passive:
|
||||
return self
|
||||
Process(target=self.sandboxed_plugin.initialize, args=[self._socket]).start()
|
||||
self.listener_task = create_task(self._response_listener())
|
||||
return self
|
||||
|
||||
async def stop(self):
|
||||
def stop(self):
|
||||
self._listener_task.cancel()
|
||||
async def _(self: PluginWrapper):
|
||||
await self._socket.write_single_line(dumps({ "stop": True }, ensure_ascii=False))
|
||||
|
||||
Reference in New Issue
Block a user