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
This commit is contained in:
click
2010-05-29 17:26:43 +02:00
parent a8b244afd5
commit ea3760066b

View File

@@ -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" );