mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Fixed a ridiculous issue where world wasn't trying to reconnect to loginservers
This commit is contained in:
parent
ffe46bd4d2
commit
c2af87431a
@ -481,19 +481,16 @@ int main(int argc, char** argv) {
|
|||||||
if (InterserverTimer.Check()) {
|
if (InterserverTimer.Check()) {
|
||||||
InterserverTimer.Start();
|
InterserverTimer.Start();
|
||||||
database.ping();
|
database.ping();
|
||||||
// AsyncLoadVariables(dbasync, &database);
|
|
||||||
ReconnectCounter++;
|
if (loginserverlist.AllConnected() == false) {
|
||||||
if (ReconnectCounter >= 12) { // only create thread to reconnect every 10 minutes. previously we were creating a new thread every 10 seconds
|
|
||||||
ReconnectCounter = 0;
|
|
||||||
if (loginserverlist.AllConnected() == false) {
|
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
_beginthread(AutoInitLoginServer, 0, nullptr);
|
_beginthread(AutoInitLoginServer, 0, nullptr);
|
||||||
#else
|
#else
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
pthread_create(&thread, nullptr, &AutoInitLoginServer, nullptr);
|
pthread_create(&thread, nullptr, &AutoInitLoginServer, nullptr);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (numclients == 0) {
|
if (numclients == 0) {
|
||||||
Sleep(50);
|
Sleep(50);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user