Refactored singletons to enable proper deconstruction during shutdown

This commit is contained in:
leak
2014-07-20 00:39:43 +02:00
parent d2c120f2c2
commit dce92611f3
39 changed files with 83 additions and 84 deletions

View File

@@ -99,9 +99,9 @@ int main(int argc, char** argv)
return 1;
// Get the list of realms for the server
sRealmList.Initialize(_ioService, sConfigMgr->GetIntDefault("RealmsStateUpdateDelay", 20));
sRealmList->Initialize(_ioService, sConfigMgr->GetIntDefault("RealmsStateUpdateDelay", 20));
if (sRealmList.size() == 0)
if (sRealmList->size() == 0)
{
TC_LOG_ERROR("server.authserver", "No valid realms specified.");
return 1;