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 /include | |
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 'include')
-rw-r--r-- | include/logger.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/logger.h b/include/logger.h index 4914e86a2..e3b7ee0a5 100644 --- a/include/logger.h +++ b/include/logger.h @@ -147,18 +147,8 @@ class CoreExport LogManager public: - LogManager() - { - noforkstream = NULL; - Logging = false; - } - - ~LogManager() - { - if (noforkstream) - delete noforkstream; - Logging = true; - } + LogManager(); + ~LogManager(); /** Sets up the logstream for -nofork. Called by InspIRCd::OpenLog() and LogManager::OpenFileLogs(). * First time called it creates the nofork stream and stores it in noforkstream. Each call thereafter just readds it to GlobalLogStreams |