changed windows watchdog behavior to not delete zoneserver
This commit is contained in:
parent
829b930f82
commit
de53282c12
1 changed files with 5 additions and 3 deletions
|
@ -2324,17 +2324,19 @@ void ZoneList::WatchdogHeartbeat()
|
|||
if (diff > 60000)
|
||||
{
|
||||
tmp->SetWatchdogTime(Timer::GetCurrentTime2()); // reset so we don't continuously flood this heartbeat
|
||||
LogWrite(WORLD__ERROR, 1, "World", "Zone %s is hung for %i.. attempting to cancel threads...", tmp->GetZoneName(), diff);
|
||||
LogWrite(WORLD__ERROR, 1, "World", "Zone %s is hung for %i milliseconds.. attempting to cancel threads...", tmp->GetZoneName(), diff);
|
||||
#ifndef WIN32
|
||||
tmp->CancelThreads();
|
||||
zlist.erase(zone_iter);
|
||||
MZoneList.releasewritelock(__FUNCTION__, __LINE__);
|
||||
safe_delete(tmp);
|
||||
#endif
|
||||
MZoneList.releasewritelock(__FUNCTION__, __LINE__);
|
||||
match = true;
|
||||
break;
|
||||
}
|
||||
else if (diff > 30000 && !tmp->isZoneShuttingDown())
|
||||
{
|
||||
LogWrite(WORLD__ERROR, 1, "World", "Zone %s is hung for %i.. attempting shutdown", tmp->GetZoneName(), diff);
|
||||
LogWrite(WORLD__ERROR, 1, "World", "Zone %s is hung for %i milliseconds.. attempting shutdown", tmp->GetZoneName(), diff);
|
||||
tmp->Shutdown();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue