From c7c381d8c9352ed18d03a4e68b9720895cd16ad4 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 10 Sep 2023 10:14:24 +0200 Subject: [PATCH] Fix log files only partially saving on failed master startup --- svr.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svr.js b/svr.js index 637851a..4edf571 100644 --- a/svr.js +++ b/svr.js @@ -5628,7 +5628,9 @@ try { serverconsole.locerrmessage("There was a problem starting SVR.JS!!!"); serverconsole.locerrmessage("Stack:"); serverconsole.locerrmessage(generateErrorStack(err)); - process.exit(err.errno ? err.errno : 1); + setTimeout(function() { + process.exit(err.errno ? err.errno : 1); + }, 10); } //////////////////////////////////