X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b4624e20e132b7a113bd450174a505419c5b34b8..468b7c5691bc378395915cf08ced610409c0323d:/projects/stargazer/main.cpp diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index b878b39c..11f4c723 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -342,15 +342,15 @@ while (running) SETTINGS_IMPL newSettings(settings); if (newSettings.ReadSettings()) { - STG_LOGGER & WriteServLog = GetStgLogger(); - if (newSettings.GetLogFileName() != "") WriteServLog.SetLogFileName(newSettings.GetLogFileName()); WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str()); - return -1; } - settings = newSettings; + else + { + settings = newSettings; + } traffCnt.Reload(); manager.reload(settings); } @@ -377,6 +377,8 @@ while (running) WriteServLog("+++++++++++++++++++++++++++++++++++++++++++++"); +manager.stop(); + if (loop.Stop()) WriteServLog("Event loop not stopped.");