summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authormarios8543 <marios8543@gmail.com>2023-10-18 15:34:25 +0300
committermarios8543 <marios8543@gmail.com>2023-10-31 23:18:31 +0200
commitf30309d15351cb9ee5fecac4e93649a2b0e33138 (patch)
tree2c5ecd618bba09c3c8dd5d62b954532b25b9128e /backend
parentf48d774554bb1be95f05232efeb764a37705aa03 (diff)
downloaddecky-loader-f30309d15351cb9ee5fecac4e93649a2b0e33138.tar.gz
decky-loader-f30309d15351cb9ee5fecac4e93649a2b0e33138.zip
fix start/stop methods
Diffstat (limited to 'backend')
-rw-r--r--backend/src/plugin/plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/src/plugin/plugin.py b/backend/src/plugin/plugin.py
index a1b43ba9..a0f926cd 100644
--- a/backend/src/plugin/plugin.py
+++ b/backend/src/plugin/plugin.py
@@ -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))