summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 34d15e4e3..cf062e397 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -106,15 +106,19 @@ void InspIRCd::Cleanup()
for (int k = 0; k <= MyModCount; k++)
this->Modules->Unload(mymodnames[k].c_str());
}
+
}
/* Close logging */
if (this->Logger)
this->Logger->Close();
+
/* Cleanup Server Names */
for(servernamelist::iterator itr = servernames.begin(); itr != servernames.end(); ++itr)
delete (*itr);
+
+
}
void InspIRCd::Restart(const std::string &reason)
@@ -388,7 +392,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
{
DWORD ExitCode = WindowsForkStart(this);
if(ExitCode)
- Exit(ExitCode);
+ exit(ExitCode);
}
// Set up winsock