From e9746559e28a5ba6879bf696be06ff5fdeefb049 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 3 Oct 2005 22:59:18 +0000 Subject: [PATCH] * 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 --- avahi-client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5