void InspIRCd::Exit(int status) { #ifdef _WIN32 SetServiceStopped(status); #endif this->Cleanup(); ServerInstance = NULL; delete this; exit (status); }
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; } exit (status); }