From: Lennart Poettering Date: Mon, 3 Oct 2005 22:59:18 +0000 (+0000) Subject: * First check server version, after that request server state in avahi_client_new() X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=e9746559e28a5ba6879bf696be06ff5fdeefb049;p=catta * First check server version, after that request server state in avahi_client_new() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@685 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-client/client.c b/avahi-client/client.c index ae3d738..be52cc9 100644 --- a/avahi-client/client.c +++ b/avahi-client/client.c @@ -465,10 +465,10 @@ AvahiClient *avahi_client_new(const AvahiPoll *poll_api, AvahiClientCallback cal goto fail; } - if (get_server_state(client, ret_error) < 0) + if (check_version(client, ret_error) < 0) goto fail; - if (check_version(client, ret_error) < 0) + if (get_server_state(client, ret_error) < 0) goto fail; return client;