From 33141a0825e7cf2dcd0cae63da8943626d8a06b6 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 19 Oct 2009 04:09:30 +0000 Subject: Close files opened by configreader git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11915 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/logger.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'include/logger.h') 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 -- cgit v1.2.3