diff options
author | John Livingston <git@john-livingston.fr> | 2020-01-16 18:49:03 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-01-20 14:54:03 +0100 |
commit | 98da1a7b4a1fd4dde33dddaeb6adf79b2248e244 (patch) | |
tree | 656f75cd3c095f2a8dfa1813019126862e54f689 /server/lib | |
parent | 96a4a7c332db933ddd70ed1be5ecf9eae5106637 (diff) | |
download | PeerTube-98da1a7b4a1fd4dde33dddaeb6adf79b2248e244.tar.gz PeerTube-98da1a7b4a1fd4dde33dddaeb6adf79b2248e244.tar.zst PeerTube-98da1a7b4a1fd4dde33dddaeb6adf79b2248e244.zip |
Fix: unregistring a plugin did not remove properly his hooks.
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/plugins/plugin-manager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts index 8127992b5..7ebdabd34 100644 --- a/server/lib/plugins/plugin-manager.ts +++ b/server/lib/plugins/plugin-manager.ts | |||
@@ -194,7 +194,7 @@ export class PluginManager implements ServerHook { | |||
194 | 194 | ||
195 | // Remove hooks of this plugin | 195 | // Remove hooks of this plugin |
196 | for (const key of Object.keys(this.hooks)) { | 196 | for (const key of Object.keys(this.hooks)) { |
197 | this.hooks[key] = this.hooks[key].filter(h => h.pluginName !== npmName) | 197 | this.hooks[key] = this.hooks[key].filter(h => h.npmName !== npmName) |
198 | } | 198 | } |
199 | 199 | ||
200 | this.reinitVideoConstants(plugin.npmName) | 200 | this.reinitVideoConstants(plugin.npmName) |