diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-06 11:59:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-06 11:59:27 +0200 |
commit | 07880c3642ca9fd9363850cf1a8e3cd2c6d9cd59 (patch) | |
tree | 6963c6af68f54e894b8396539a0819209ca3385e /server/lib | |
parent | 25d7cc3cb675de36fe67402e307e1ba02f3316bc (diff) | |
download | PeerTube-07880c3642ca9fd9363850cf1a8e3cd2c6d9cd59.tar.gz PeerTube-07880c3642ca9fd9363850cf1a8e3cd2c6d9cd59.tar.zst PeerTube-07880c3642ca9fd9363850cf1a8e3cd2c6d9cd59.zip |
Correctly unload plugin paths
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 9086a4c8e..88c5b60d7 100644 --- a/server/lib/plugins/plugin-manager.ts +++ b/server/lib/plugins/plugin-manager.ts | |||
@@ -496,7 +496,7 @@ export class PluginManager implements ServerHook { | |||
496 | 496 | ||
497 | // Delete cache if needed | 497 | // Delete cache if needed |
498 | const modulePath = join(pluginPath, packageJSON.library) | 498 | const modulePath = join(pluginPath, packageJSON.library) |
499 | decachePlugin(pluginPath, modulePath) | 499 | decachePlugin(modulePath) |
500 | const library: PluginLibrary = require(modulePath) | 500 | const library: PluginLibrary = require(modulePath) |
501 | 501 | ||
502 | if (!isLibraryCodeValid(library)) { | 502 | if (!isLibraryCodeValid(library)) { |