summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-21 17:40:35 +0000
committerdz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-21 17:40:35 +0000
commit2699c4d76435f2368c1064afdbee5fdbb057ef36 (patch)
tree1666c5b3fe8b14da5a028d7a0b4ea4bc9970b65e
parent509f691a3c3455f8c11f1ba9b94554a2303e9362 (diff)
Actually close file log FDs when we're done with them.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11241 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/logger.h1
-rw-r--r--src/logger.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/logger.h b/include/logger.h
index 7ecf954f4..d88706214 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -69,7 +69,6 @@ class CoreExport FileWriter : public EventHandler
virtual void Close();
/** Close the log file and cancel any events.
- * (indirectly call Close()
*/
virtual ~FileWriter();
};
diff --git a/src/logger.cpp b/src/logger.cpp
index 10b5591e7..05fb801ae 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -362,4 +362,5 @@ void FileWriter::Close()
FileWriter::~FileWriter()
{
+ this->Close();
}