aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/plugins/plugin-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/plugins/plugin-manager.ts')
-rw-r--r--server/lib/plugins/plugin-manager.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts
index 85ee3decb..e76dbb53e 100644
--- a/server/lib/plugins/plugin-manager.ts
+++ b/server/lib/plugins/plugin-manager.ts
@@ -143,6 +143,8 @@ export class PluginManager implements ServerHook {
143 throw new Error(`Unknown plugin ${npmName} to unregister`) 143 throw new Error(`Unknown plugin ${npmName} to unregister`)
144 } 144 }
145 145
146 delete this.registeredPlugins[plugin.npmName]
147
146 if (plugin.type === PluginType.PLUGIN) { 148 if (plugin.type === PluginType.PLUGIN) {
147 await plugin.unregister() 149 await plugin.unregister()
148 150
@@ -154,8 +156,6 @@ export class PluginManager implements ServerHook {
154 logger.info('Regenerating registered plugin CSS to global file.') 156 logger.info('Regenerating registered plugin CSS to global file.')
155 await this.regeneratePluginGlobalCSS() 157 await this.regeneratePluginGlobalCSS()
156 } 158 }
157
158 delete this.registeredPlugins[plugin.npmName]
159 } 159 }
160 160
161 // ###################### Installation ###################### 161 // ###################### Installation ######################