summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logger.cpp2
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 */