Add config option SessionAddDelay to replace the hard coded 10ms default Networkthread sleep time after WorldSocket::HandleAuthSession calls and adding the session to the world session map.
--HG-- branch : trunk
This commit is contained in:
1 parent
d390ff46c2
commit
98a5c09af0
4 files changed
+12
-2
No files matched your search
@@ -1001,8 +1001,9 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
|
||||
m_Session->LoadTutorialsData();
|
||||
m_Session->ReadAddonsInfo(recvPacket);
|
||||
|
||||
// In case needed sometime the second arg is in microseconds 1 000 000 = 1 sec
|
||||
ACE_OS::sleep (ACE_Time_Value (0, 10000));
|
||||
// Sleep this Network thread for
|
||||
uint32 sleepTime = sWorld.getConfig(CONFIG_SESSION_ADD_DELAY);
|
||||
ACE_OS::sleep (ACE_Time_Value (0, sleepTime));
|
||||
|
||||
sWorld.AddSession (m_Session);
|
||||
|
||||
|
||||
Reference in new issue
Block a user