]> git.stg.codes - stg.git/blobdiff - projects/stargazer/main.cpp
Ticket 26. The 'return -1' removed, 'else' added for the
[stg.git] / projects / stargazer / main.cpp
index b878b39c41cf5ca146a81ce7712fb3f1e7c4c684..644fed9145d7a0d43ab27e64d5a9cdd2927bbbd2 100644 (file)
@@ -348,9 +348,11 @@ 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(settings);
             }
@@ -377,6 +379,8 @@ while (running)
 
 WriteServLog("+++++++++++++++++++++++++++++++++++++++++++++");
 
+manager.stop();
+
 if (loop.Stop())
     WriteServLog("Event loop not stopped.");