1
0

periodically check DB for zones status situation against peers

This commit is contained in:
Emagi 2024-12-02 21:51:28 -05:00
parent 7a48aad79b
commit ea8bc2d89f

View File

@ -634,12 +634,17 @@ ThreadReturnType AchievmentLoad (void* tmp)
ThreadReturnType StartPeerPoll (void* tmp)
{
int32 check_zone = 0;
while( RunLoops )
{
LogWrite(WORLD__WARNING, 0, "Thread", "Start Polling...");
peer_https_pool.startPolling();
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
if(check_zone > 60) {
check_zone = 0;
database.LoadSpecialZones();
}
check_zone++;
}
THREAD_RETURN(NULL);
}