diff options
author | dz <dz@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-21 17:40:35 +0000 |
---|---|---|
committer | dz <dz@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-21 17:40:35 +0000 |
commit | 2699c4d76435f2368c1064afdbee5fdbb057ef36 (patch) | |
tree | 1666c5b3fe8b14da5a028d7a0b4ea4bc9970b65e | |
parent | 509f691a3c3455f8c11f1ba9b94554a2303e9362 (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.h | 1 | ||||
-rw-r--r-- | src/logger.cpp | 1 |
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(); } |