summaryrefslogtreecommitdiff
path: root/backend/src
diff options
context:
space:
mode:
authormarios8543 <marios8543@gmail.com>2023-10-18 15:34:25 +0300
committermarios8543 <marios8543@gmail.com>2023-10-18 15:34:25 +0300
commit934b1b35ad2ab2743a9d55de21eea73a54df72b9 (patch)
treeb0b309dbc08cc4e0979db48ee8d7303d49b11c2a /backend/src
parent88250b3e20a6635bb1e14d4033f8e5be8ef19c6f (diff)
downloaddecky-loader-934b1b35ad2ab2743a9d55de21eea73a54df72b9.tar.gz
decky-loader-934b1b35ad2ab2743a9d55de21eea73a54df72b9.zip
fix start/stop methods
Diffstat (limited to 'backend/src')
-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))