]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Fix various warnings when building with LLVM 3.5.
[user/henk/code/inspircd.git] / src / server.cpp
index 4741f942d53d2b5e838ddf52f1f16f5a435aeb92..d05ece8a45ac2c7f86bce4308dbb3fcc598687c9 100644 (file)
@@ -46,13 +46,10 @@ void InspIRCd::Exit(int status)
 #ifdef _WIN32
        SetServiceStopped(status);
 #endif
-       if (this)
-       {
-               this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")");
-               this->Cleanup();
-               delete this;
-               ServerInstance = NULL;
-       }
+       this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")");
+       this->Cleanup();
+       delete this;
+       ServerInstance = NULL;
        exit (status);
 }