From 934b1b35ad2ab2743a9d55de21eea73a54df72b9 Mon Sep 17 00:00:00 2001 From: marios8543 Date: Wed, 18 Oct 2023 15:34:25 +0300 Subject: [PATCH] fix start/stop methods --- backend/src/plugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/plugin/plugin.py b/backend/src/plugin/plugin.py index a1b43ba98..a0f926cd3 100644 --- a/backend/src/plugin/plugin.py +++ b/backend/src/plugin/plugin.py @@ -65,14 +65,14 @@ async def execute_method(self, method_name: str, kwargs: Dict[Any, Any]): 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))