From faf600954832b4a00ae8ca052239f511e88ce407 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 25 Jan 2024 19:48:49 -0500 Subject: [PATCH] temporarily disable safe mode mechanism issue #1581 --- src/engine/engine.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 0151828d0..eb02287ab 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -3753,12 +3753,16 @@ bool DivEngine::preInit(bool noSafeMode) { initConfDir(); logD("config path: %s",configPath.c_str()); + // TODO: re-enable with a better approach + // see issue #1581 + /* if (!noSafeMode) { String safeModePath=configPath+DIR_SEPARATOR_STR+"safemode"; if (touchFile(safeModePath.c_str())==-EEXIST) { wantSafe=true; } } + */ String logPath=configPath+DIR_SEPARATOR_STR+"furnace.log"; startLogFile(logPath.c_str()); @@ -3782,8 +3786,12 @@ bool DivEngine::preInit(bool noSafeMode) { } void DivEngine::everythingOK() { + // TODO: re-enable with a better approach + // see issue #1581 + /* String safeModePath=configPath+DIR_SEPARATOR_STR+"safemode"; deleteFile(safeModePath.c_str()); + */ } bool DivEngine::init() {