summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-19 04:09:30 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-19 04:09:30 +0000
commit33141a0825e7cf2dcd0cae63da8943626d8a06b6 (patch)
treeb69c1eb64fc035ac5046a0ca521d8142613d9477 /include
parent041401bc1fa01d5b1397b20847f8c95b8ea2a4f8 (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.h14
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