X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fserver.cpp;h=42dce137230ad892c743cb456d94c7a702aa132a;hb=7492344e64491cea6bbb5c9354dceb804bb908ac;hp=256ccfc4c0540a1e2f06c3d914f5b68ce8757a14;hpb=b8d32b75cd8d7d70058706122239d2814d5f6487;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/server.cpp b/src/server.cpp index 256ccfc4c..42dce1372 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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(); - ServerInstance = NULL; - delete this; - } + this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")"); + this->Cleanup(); + ServerInstance = NULL; + delete this; exit (status); }