From ea3760066b62a60d0f570b3a86d141fdc656fed2 Mon Sep 17 00:00:00 2001 From: click Date: Sat, 29 May 2010 17:26:43 +0200 Subject: 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 --- src/trinitycore/Master.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/trinitycore/Master.cpp') 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( " to stop.\n" ); -- cgit v1.2.3