diff options
author | click <none@none> | 2010-05-29 17:26:43 +0200 |
---|---|---|
committer | click <none@none> | 2010-05-29 17:26:43 +0200 |
commit | ea3760066b62a60d0f570b3a86d141fdc656fed2 (patch) | |
tree | 876c88ad395c5371185a2a529df551cfcc6192c9 | |
parent | a8b244afd577ff82e895173a06c8002cc03bff28 (diff) |
Initialize the random logonhash on world startup to avoid socket hang on Windows platform. Patch by scarymovie87.
Update issue 1611
The "fix" itself will require further testing, though I'm suspecting this occurs due to that the loginhash
(to a realm that has just been restarted) isn't properly initialized. Consider this as a temporary workaround.
--HG--
branch : trunk
-rw-r--r-- | src/trinitycore/Master.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trinitycore/Master.cpp b/src/trinitycore/Master.cpp index adc3e144c68..8b34b512f57 100644 --- a/src/trinitycore/Master.cpp +++ b/src/trinitycore/Master.cpp @@ -48,6 +48,7 @@ #include "sockets/Socket.h" #include "sockets/SocketHandler.h" #include "sockets/ListenSocket.h" +#include "Auth/BigNumber.h" #ifdef WIN32 #include "ServiceWin32.h" @@ -222,6 +223,9 @@ Master::~Master() /// Main function int Master::Run() { + BigNumber seed1; + seed1.SetRand(16 * 8); + sLog.outString( "%s (core-daemon)", _FULLVERSION ); sLog.outString( "<Ctrl-C> to stop.\n" ); |