mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-29 19:52:54 +01:00
Plugin init/dispose
This commit is contained in:
1 parent
0d98b95b61
commit
38529cc89e
12 files changed
+101
-85
No files matched your search
@@ -46,7 +46,7 @@ async function handleIncoming(msg: string) {
|
||||
}
|
||||
|
||||
if (pluginEvent.payload.type === 'terminate_request') {
|
||||
plugin.terminate();
|
||||
await plugin.terminate();
|
||||
console.log('Terminated plugin worker', pluginEvent.pluginRefId);
|
||||
delete plugins[pluginEvent.pluginRefId];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user