From 094a859f62cb9503a54a6162cf4c83114f965e1c Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Sun, 27 Oct 2019 19:54:16 +0800 Subject: [PATCH] fix clean --- clean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clean.js b/clean.js index 534ab48..8f5aabf 100644 --- a/clean.js +++ b/clean.js @@ -81,7 +81,7 @@ const start = async (job, done) => { process.on('uncaughtException', beforeExit); process.on('unhandledRejection', beforeExit); typeof process.send === 'function' && process.send('子进程开始执行mine'); - clean(job, done); + await clean(job, done); typeof process.send === 'function' && process.send('子进程mine执行完毕'); process.exit(); };