Moved onStartup hook under Master.cpp to avoid issues with freezing check
This commit is contained in:
parent
28e2d76cb4
commit
b1c5c2aa71
2 changed files with 3 additions and 2 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include "Util.h"
|
||||
#include "AuthSocket.h"
|
||||
#include "RealmList.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
#include "BigNumber.h"
|
||||
#include "OpenSSLCrypto.h"
|
||||
|
|
@ -155,6 +156,8 @@ int Master::Run()
|
|||
///- Initialize the World
|
||||
sWorld->SetInitialWorldSettings();
|
||||
|
||||
sScriptMgr->OnStartup();
|
||||
|
||||
///- Initialize the signal handlers
|
||||
WorldServerSignalHandler signalINT, signalTERM; //, signalSEGV
|
||||
#ifdef _WIN32
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@ void WorldRunnable::run()
|
|||
uint32 realCurrTime = 0;
|
||||
uint32 realPrevTime = getMSTime();
|
||||
|
||||
sScriptMgr->OnStartup();
|
||||
|
||||
///- While we have not World::m_stopEvent, update the world
|
||||
while (!World::IsStopped())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue