Merge pull request #19 from viktorgino/master

Check if work queue is empty on cleanup
This commit is contained in:
jbagg
2018-04-03 10:43:24 -04:00
committed by GitHub

View File

@ -228,6 +228,7 @@ void QZeroConfPrivate::cleanUp(DNSServiceRef toClean)
delete resolverSocket;
resolverSocket = NULL;
}
if(!work.isEmpty())
work.dequeue();
if (work.size())
resolve();