diff options
author | Adam <adam@inspircd.org> | 2010-08-03 17:38:48 -0400 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-08-03 17:49:46 -0400 |
commit | 5ab1c0da2e22352b0f66a7f89f5dd0a5e45b8bde (patch) | |
tree | 0aabc9cb83ba21123b70acc0ef30df9826f83c83 /src/logger.cpp | |
parent | 65d9999c006dc3d20439ecc0e9856b9990f9dce7 (diff) |
Fix for crash on restart or config file open (bug #44)
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 51f927104..2e2682368 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -124,7 +124,7 @@ void LogManager::OpenFileLogs() void LogManager::CloseLogs() { - if (ServerInstance->Config->cmdline.forcedebug) + if (ServerInstance->Config && ServerInstance->Config->cmdline.forcedebug) return; std::map<std::string, std::vector<LogStream*> >().swap(LogStreams); /* Clear it */ std::map<LogStream*, std::vector<std::string> >().swap(GlobalLogStreams); /* Clear it */ |