summaryrefslogtreecommitdiffstats
path: root/avahi-core
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core')
-rw-r--r--avahi-core/querier.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/avahi-core/querier.c b/avahi-core/querier.c
index 2b1c919..d9dc1fb 100644
--- a/avahi-core/querier.c
+++ b/avahi-core/querier.c
@@ -146,11 +146,10 @@ void avahi_querier_add(AvahiInterface *i, AvahiKey *key, struct timeval *ret_cti
void avahi_querier_remove(AvahiInterface *i, AvahiKey *key) {
AvahiQuerier *q;
- if (!(q = avahi_hashmap_lookup(i->queriers_by_key, key)) || q->n_used <= 0) {
- /* There was no querier for this RR key, or it wasn't referenced by anyone */
- avahi_log_warn(__FILE__": querier_remove() called but no querier to remove.");
+ /* There was no querier for this RR key, or it wasn't referenced
+ * by anyone. */
+ if (!(q = avahi_hashmap_lookup(i->queriers_by_key, key)) || q->n_used <= 0)
return;
- }
if ((--q->n_used) <= 0) {