mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Fix for crash on restart or config file open (bug #44)
This commit is contained in:
parent
65d9999c00
commit
5ab1c0da2e
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user