aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar danieldg2009-10-19 04:09:30 +0000
committerGravatar danieldg2009-10-19 04:09:30 +0000
commit33141a0825e7cf2dcd0cae63da8943626d8a06b6 (patch)
treeb69c1eb64fc035ac5046a0ca521d8142613d9477 /include
parentPrevent path names from being specified in modules, and move moduledir to a <... (diff)
downloadinspircd++-33141a0825e7cf2dcd0cae63da8943626d8a06b6.tar.gz
inspircd++-33141a0825e7cf2dcd0cae63da8943626d8a06b6.tar.bz2
inspircd++-33141a0825e7cf2dcd0cae63da8943626d8a06b6.zip
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