Await plugin cleanup

This commit is contained in:
Cohee 2023-12-23 19:05:21 +02:00
parent ea85cfcbdd
commit f1453a3e8a
1 changed files with 2 additions and 2 deletions

View File

@ -610,10 +610,10 @@ const setupTasks = async function () {
const cleanupPlugins = await loadPlugins();
const exitProcess = () => {
const exitProcess = async () => {
statsEndpoint.onExit();
if (typeof cleanupPlugins === 'function') {
cleanupPlugins();
await cleanupPlugins();
}
process.exit();
};