Rename master plugin onExit hook to onShutdown

Rename the onExit hook for master plugins to onShutdown to better
reflect when it is invoked.
This commit is contained in:
Hornwitser committed 2020-04-09 19:50:01 +02:00
1 parent 9507608e59
commit 61d92a6910
5 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -250,8 +250,8 @@ async function shutdown() {
for (let [pluginName, masterPlugin] of masterPlugins) {
let startTime = Date.now();
await masterPlugin.onExit();
console.log(`Plugin ${pluginName} exited in ${Date.now() - startTime}ms`);
await masterPlugin.onShutdown();
console.log(`Plugin ${pluginName} shutdown in ${Date.now() - startTime}ms`);
}
stopAcceptingNewSessions = true;