diff --git a/bonjour.cpp b/bonjour.cpp index 1db7b7b..b046fbd 100644 --- a/bonjour.cpp +++ b/bonjour.cpp @@ -228,7 +228,8 @@ void QZeroConfPrivate::cleanUp(DNSServiceRef toClean) delete resolverSocket; resolverSocket = NULL; } - work.dequeue(); + if(!work.isEmpty()) + work.dequeue(); if (work.size()) resolve(); }