]> git.stg.codes - stg.git/commitdiff
Do not log about successful plugin stop if error occures
authorMaxim Mamontov <faust.madf@gmail.com>
Thu, 20 Oct 2011 09:29:10 +0000 (12:29 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Thu, 20 Oct 2011 09:29:10 +0000 (12:29 +0300)
projects/stargazer/main.cpp

index 375823481175b522bdd22a5e06677b3fd6e5f854..4fff88a16de7c82a094ca54ba2c3f094c2223bf6 100644 (file)
@@ -478,7 +478,10 @@ while (modIter != modules.end())
                      modIter->GetStrError().c_str());
         printfd(__FILE__, "Failed to stop module '%s'\n", name.c_str());
         }
-    WriteServLog("Module: \'%s\'. Stop successfull.", modIter->GetPlugin()->GetVersion().c_str());
+    else
+        {
+        WriteServLog("Module: \'%s\'. Stop successfull.", modIter->GetPlugin()->GetVersion().c_str());
+        }
     ++modIter;
     }