mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
Sleep longer when zone not booted
This commit is contained in:
parent
004c0f7858
commit
cebda984b6
@ -537,7 +537,6 @@ int main(int argc, char** argv) {
|
|||||||
while (RunLoops) {
|
while (RunLoops) {
|
||||||
bool previous_loaded = is_zone_loaded && numclients > 0;
|
bool previous_loaded = is_zone_loaded && numclients > 0;
|
||||||
EQ::EventLoop::Get().Process();
|
EQ::EventLoop::Get().Process();
|
||||||
Sleep(1);
|
|
||||||
|
|
||||||
bool current_loaded = is_zone_loaded && numclients > 0;
|
bool current_loaded = is_zone_loaded && numclients > 0;
|
||||||
if (previous_loaded && !current_loaded) {
|
if (previous_loaded && !current_loaded) {
|
||||||
@ -548,6 +547,13 @@ int main(int argc, char** argv) {
|
|||||||
process_timer.Stop();
|
process_timer.Stop();
|
||||||
process_timer.Start(32, true);
|
process_timer.Start(32, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (current_loaded) {
|
||||||
|
Sleep(1);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Sleep(10);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
entity_list.Clear();
|
entity_list.Clear();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user