mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
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:
@@ -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" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user