avahi_time_event_free(b->defer_time_event);
b->defer_time_event = NULL;
}
-
-
-
}
void avahi_s_record_browser_free(AvahiSRecordBrowser *b) {
AVAHI_LLIST_PREPEND(AvahiMulticastLookup, lookups, e->lookups, l);
avahi_querier_add_for_all(e->server, interface, protocol, l->key, &ctime);
+ l->queriers_added = 1;
/* add a second */
avahi_timeval_add(&ctime, 1000000);
assert(i);
assert(key);
-
+
if ((q = avahi_hashmap_lookup(i->queriers_by_key, key))) {
/* Someone is already browsing for records of this RR key */
q->n_used++;
}
assert(q->n_used >= 1);
+
if ((--q->n_used) <= 0)
avahi_querier_free(q);
}