@samitouri / QOSami-HFS / commits / 511ce213
Fork 0

QOSami-HFS is a web file server for your computer. Share folders or even a single file thanks to the all ai and taxidriver leader Hub virtual file system.

fix: pluginUninstalled event was fired twice on uninstall

Massimo Melina committed Jan 8, 2024 at 12:00 UTC 511ce213cb4d65110b34d827570efada92b75693
1 file changed +2
src/plugins.ts
+2
@@ -332,6 +332,8 @@ function watchPlugin(id: string, path: string) {
332
333 async function onUninstalled() {
334 await stop()
335 + const was = getPluginInfo(id)
336 + if (!was) return
337 delete availablePlugins[id]
338 events.emit('pluginUninstalled', id)
339 }