From 7d74e98f4f8a47daac85b5de1ef6aa29a1637c06 Mon Sep 17 00:00:00 2001 From: marios Date: Fri, 29 Apr 2022 12:52:24 +0300 Subject: Bug fixes - Fixed KeyError in execute_in_tab - Changed the plugin process dispatch method, this *should* fix that annoying server hang issue. --- plugin_loader/plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugin_loader/plugin.py') diff --git a/plugin_loader/plugin.py b/plugin_loader/plugin.py index 0f8880f3..88857797 100644 --- a/plugin_loader/plugin.py +++ b/plugin_loader/plugin.py @@ -73,10 +73,7 @@ class PluginWrapper: def start(self): if self.passive: return self - get_event_loop().run_in_executor( - ProcessPoolExecutor(), - self._init - ) + ProcessPoolExecutor().submit(self._init, self) return self def stop(self): -- cgit v1.2.3