]> git.meshlink.io Git - catta/commitdiff
* First check server version, after that request server state in avahi_client_new()
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Oct 2005 22:59:18 +0000 (22:59 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Oct 2005 22:59:18 +0000 (22:59 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@685 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-client/client.c

index ae3d7388502a5c8a155ef3b96c4061897621d568..be52cc928b3689506b21ca3a4eafd7f723207a87 100644 (file)
@@ -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;