From: Lennart Poettering Date: Wed, 3 Aug 2005 23:03:51 +0000 (+0000) Subject: * another small fix X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=3721d123911f7056129be17cdcd702f78795be0a;p=catta * another small fix git-svn-id: file:///home/lennart/svn/public/avahi/trunk@221 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/server.c b/avahi-core/server.c index 89f8cf9..087eafc 100644 --- a/avahi-core/server.c +++ b/avahi-core/server.c @@ -2002,11 +2002,11 @@ void avahi_entry_group_free(AvahiEntryGroup *g) { static void entry_group_commit_real(AvahiEntryGroup *g) { g_assert(g); - avahi_entry_group_change_state(g, AVAHI_ENTRY_GROUP_REGISTERING); avahi_announce_group(g->server, g); avahi_entry_group_check_probed(g, FALSE); g_get_current_time(&g->register_time); + avahi_entry_group_change_state(g, AVAHI_ENTRY_GROUP_REGISTERING); } static void entry_group_register_time_event_callback(AvahiTimeEvent *e, gpointer userdata) { @@ -2049,10 +2049,10 @@ gint avahi_entry_group_commit(AvahiEntryGroup *g) { /* avahi_log_debug("Holdoff not passed, sleeping."); */ /* Holdoff time has not yet passed, so let's wait */ - avahi_entry_group_change_state(g, AVAHI_ENTRY_GROUP_REGISTERING); - g_assert(!g->register_time_event); g->register_time_event = avahi_time_event_queue_add(g->server->time_event_queue, &g->register_time, entry_group_register_time_event_callback, g); + + avahi_entry_group_change_state(g, AVAHI_ENTRY_GROUP_REGISTERING); } return AVAHI_OK;