bool DeviceDiscoveryImp::IsRefreshRequired()

in library/src/DeviceDiscoveryImp.cpp [18:25]


bool DeviceDiscoveryImp::IsRefreshRequired()
{
	// Make sure WinRT is initialised for the calling thread
	Windows::Foundation::Initialize(RO_INIT_MULTITHREADED);
	
	// We require a refresh if we have no data or we have stale data
	return (this->HaveDevices()) ? this->enumeration->IsStale() : true;
}