mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[9904] Add new config option for wait mode at startup error.
Note: it not applied to crashes and shutdowns after mangosd/relamd startup completed. You can continue without delay (as now) and fast exist, or wait <Enter>, or some secs for continue. Last can be helpful for see for example not applied sql update revision data and etc.
This commit is contained in:
parent
f492ee6794
commit
aaa33d5385
10 changed files with 67 additions and 11 deletions
|
|
@ -419,9 +419,7 @@ void World::LoadConfigSettings(bool reload)
|
|||
sLog.outError(" WARNING: mangosd.conf does not include a ConfVersion variable.");
|
||||
sLog.outError(" Your configuration file may be out of date!");
|
||||
sLog.outError("*****************************************************************************");
|
||||
clock_t pause = 3000 + clock();
|
||||
while (pause > clock())
|
||||
; // empty body
|
||||
Log::WaitBeforeContinueIfNeed();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -432,9 +430,7 @@ void World::LoadConfigSettings(bool reload)
|
|||
sLog.outError(" Please check for updates, as your current default values may cause");
|
||||
sLog.outError(" unexpected behavior.");
|
||||
sLog.outError("*****************************************************************************");
|
||||
clock_t pause = 3000 + clock();
|
||||
while (pause > clock())
|
||||
; // empty body
|
||||
Log::WaitBeforeContinueIfNeed();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue