++
This commit is contained in:
@@ -65,11 +65,7 @@ void MapUpdater::wait()
|
||||
{
|
||||
std::unique_lock lock(_lock);
|
||||
|
||||
// Add timeout to prevent indefinite hanging if a worker thread crashes
|
||||
if (!_condition.wait_for(lock, std::chrono::seconds(60), [&] { return pending_requests == 0; }))
|
||||
{
|
||||
TC_LOG_ERROR("maps", "MapUpdater::wait() timeout - pending_requests: {} (possible worker thread crash)", pending_requests);
|
||||
}
|
||||
_condition.wait(lock, [&] { return pending_requests == 0; });
|
||||
}
|
||||
|
||||
void MapUpdater::schedule_update(Map& map, uint32 diff)
|
||||
|
||||
Reference in New Issue
Block a user