X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/5f488a67d8dae833dcd29b65804abf7904a90a86..2e04025761ba7c7fdd33f81f2b627c4b2ace1ef8:/projects/stargazer/main.cpp diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 860800f8..644fed91 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -348,11 +348,13 @@ while (running) WriteServLog.SetLogFileName(newSettings.GetLogFileName()); WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str()); - return -1; } - settings = newSettings; + else + { + settings = newSettings; + } traffCnt.Reload(); - manager.reload(); + manager.reload(settings); } break; case SIGTERM: @@ -377,6 +379,8 @@ while (running) WriteServLog("+++++++++++++++++++++++++++++++++++++++++++++"); +manager.stop(); + if (loop.Stop()) WriteServLog("Event loop not stopped.");