summaryrefslogtreecommitdiffstats
path: root/avahi-core/server.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-28 23:50:08 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-28 23:50:08 +0200
commit4cee342544b5d31022462ba522eed9959ebbd9dd (patch)
tree01b65735b01d848cbdf36a71185f1a9784abbe79 /avahi-core/server.c
parent955093014c992318a1b52758a8e01627bb0a82f2 (diff)
core: fix counting of workstation services that are in the process of being registered
Fixes http://avahi.org/ticket/276
Diffstat (limited to 'avahi-core/server.c')
-rw-r--r--avahi-core/server.c1
1 files changed, 1 insertions, 0 deletions
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)