Fix for quitting hang, I think?

This commit is contained in:
Skylar Grant 2022-12-18 21:38:13 -05:00
parent 5f97b8858a
commit 0be6df1172

View File

@ -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;