diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 04:09:30 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 04:09:30 +0000 |
commit | 33141a0825e7cf2dcd0cae63da8943626d8a06b6 (patch) | |
tree | b69c1eb64fc035ac5046a0ca521d8142613d9477 /src/logger.cpp | |
parent | 041401bc1fa01d5b1397b20847f8c95b8ea2a4f8 (diff) |
Close files opened by configreader
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11915 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index be28bf836..19e07e78f 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -42,6 +42,22 @@ * */ +LogManager::LogManager() +{ + noforkstream = NULL; + Logging = false; +} + +LogManager::~LogManager() +{ + if (noforkstream) + { + ServerInstance->Logs = this; + delete noforkstream; + ServerInstance->Logs = NULL; + } +} + void LogManager::SetupNoFork() { if (!noforkstream) |