bool AdapterEnumeration::IsStale()

in library/src/AdapterEnumeration.cpp [106:126]


bool AdapterEnumeration::IsStale() const
{
	// If we have not yet performed enumeration then report that our data is stale
	if (this->adapterLists.empty())
	{
		LOG(L"No adapter lists yet, need to perform enumeration");
		return true;
	}
	
	// If any of our adapter lists are stale then our data is stale
	for (auto const& list : this->adapterLists)
	{
		if (list->IsStale())
		{
			LOG(L"Found stale adapter list");
			return true;
		}
	}
	
	return false;
}