diff options
| author | 2014-09-15 17:35:36 +0200 | |
|---|---|---|
| committer | 2014-09-15 17:35:36 +0200 | |
| commit | b8d32b75cd8d7d70058706122239d2814d5f6487 (patch) | |
| tree | f40f3b8c3c436eb079332a134051c0a1520fa1cd /src/server.cpp | |
| parent | Remove listmode hiding support from the core (diff) | |
Fix incorrect cleanup order in InspIRCd::Exit()
classbase objects such as callers call LogManager::Log() on destruction unless ServerInstance is NULL
Diffstat (limited to 'src/server.cpp')
| -rw-r--r-- | src/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index ceefa4387..256ccfc4c 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -50,8 +50,8 @@ void InspIRCd::Exit(int status) { this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")"); this->Cleanup(); - delete this; ServerInstance = NULL; + delete this; } exit (status); } |
