From 0be6df117252b00f17415fc1796970b5ec15b6ec Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 18 Dec 2022 21:38:13 -0500 Subject: [PATCH] Fix for quitting hang, I think? --- functions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.js b/functions.js index f5aa024..26f023d 100644 --- a/functions.js +++ b/functions.js @@ -227,6 +227,8 @@ const functions = { if (config.status.shutdown == 0) { // set shutdown flag to 1 config.status.shutdown = 1; + // Check if this was invoked from a 'quit' file, if so, delete the file + if (fs.existsSync('./quit')) fs.unlink('./quit', (err) => { throw err; }); // If the auger is enabled, disable it if (config.status.auger == 1) { config.status.auger = 0;