summaryrefslogtreecommitdiff
path: root/backend/net.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-05-24 21:03:56 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-05-24 21:03:56 +0200
commit58912f68c2489bcee787599837447e0d64dfd61a (patch)
treedda50aadde35fe152da1a8d50769987ace0f1496 /backend/net.c
parentcfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (diff)
New upstream version 1.0.27upstream/1.0.27
Diffstat (limited to 'backend/net.c')
-rw-r--r--backend/net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/net.c b/backend/net.c
index 4beb45d..57889a2 100644
--- a/backend/net.c
+++ b/backend/net.c
@@ -846,15 +846,15 @@ net_avahi_callback (AvahiClient *c, AvahiClientState state, void * userdata)
if (error == AVAHI_ERR_DISCONNECTED)
{
/* Server disappeared - try to reconnect */
- avahi_client_free (avahi_client);
- avahi_client = NULL;
-
if (avahi_browser)
{
avahi_service_browser_free (avahi_browser);
avahi_browser = NULL;
}
+ avahi_client_free (avahi_client);
+ avahi_client = NULL;
+
avahi_client = avahi_client_new (avahi_threaded_poll_get (avahi_thread), AVAHI_CLIENT_NO_FAIL, net_avahi_callback, NULL, &error);
if (avahi_client == NULL)
{