zeroconf: avoid updates immediately after a refresh

Change-Id: Icb1afb741fb288208666c6cc54f88a7848532305
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Fawzi Mohamed
2012-04-05 20:30:13 +02:00
parent eda1e12268
commit 8bdbbab157

View File

@@ -1366,7 +1366,8 @@ void ServiceBrowserPrivate::maybeUpdateLists()
}
}
foreach (const ServiceGatherer::Ptr &g, pendingGatherers)
hasServicesChanges = hasServicesChanges || g->enactServiceChange();
if (delayDeletesUntil <= now || ! g->publishedService)
hasServicesChanges = hasServicesChanges || g->enactServiceChange();
if (hasServicesChanges) {
{
QMutexLocker l(mainConnection->lock());