Await plugin cleanup
This commit is contained in:
parent
ea85cfcbdd
commit
f1453a3e8a
|
@ -610,10 +610,10 @@ const setupTasks = async function () {
|
||||||
|
|
||||||
const cleanupPlugins = await loadPlugins();
|
const cleanupPlugins = await loadPlugins();
|
||||||
|
|
||||||
const exitProcess = () => {
|
const exitProcess = async () => {
|
||||||
statsEndpoint.onExit();
|
statsEndpoint.onExit();
|
||||||
if (typeof cleanupPlugins === 'function') {
|
if (typeof cleanupPlugins === 'function') {
|
||||||
cleanupPlugins();
|
await cleanupPlugins();
|
||||||
}
|
}
|
||||||
process.exit();
|
process.exit();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue