From 4cee342544b5d31022462ba522eed9959ebbd9dd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 28 Jun 2010 23:50:08 +0200 Subject: core: fix counting of workstation services that are in the process of being registered Fixes http://avahi.org/ticket/276 --- avahi-core/server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'avahi-core/server.c') diff --git a/avahi-core/server.c b/avahi-core/server.c index 6c7c4e2..a149f0f 100644 --- a/avahi-core/server.c +++ b/avahi-core/server.c @@ -1215,6 +1215,7 @@ static void register_stuff(AvahiServer *s) { register_browse_domain(s); avahi_interface_monitor_update_rrs(s->monitor, 0); + assert(s->n_host_rr_pending > 0); s->n_host_rr_pending --; if (s->n_host_rr_pending == 0) -- cgit