From 5ab1c0da2e22352b0f66a7f89f5dd0a5e45b8bde Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 3 Aug 2010 17:38:48 -0400 Subject: Fix for crash on restart or config file open (bug #44) --- src/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 >().swap(LogStreams); /* Clear it */ std::map >().swap(GlobalLogStreams); /* Clear it */ -- cgit v1.2.3