diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-05-24 21:03:56 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-05-24 21:03:56 +0200 |
commit | 58912f68c2489bcee787599837447e0d64dfd61a (patch) | |
tree | dda50aadde35fe152da1a8d50769987ace0f1496 /backend/net.c | |
parent | cfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (diff) |
New upstream version 1.0.27upstream/1.0.27
Diffstat (limited to 'backend/net.c')
-rw-r--r-- | backend/net.c | 6 |
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) { |