--- d:\before\hostthre.c	2005-10-05 04:00:00.000000000 -0400
+++ d:\after\hostthre.c	2005-10-19 09:29:36.087987200 -0400
@@ -660,15 +660,15 @@
       rc = CURLE_OUT_OF_MEMORY;
       failf(data, "Could not resolve host: %s", curl_easy_strerror(rc));
     }
-    else if (td->thread_status == (DWORD)-1 || conn->async.status == NO_DATA) {
-      failf(data, "Resolving host timed out: %s", conn->host.name);
-      rc = CURLE_OPERATION_TIMEDOUT;
-    }
     else if(conn->async.done) {
       failf(data, "Could not resolve host: %s; %s",
             conn->host.name, Curl_strerror(conn,conn->async.status));
       rc = CURLE_COULDNT_RESOLVE_HOST;
     }
+    else if (td->thread_status == (DWORD)-1 || conn->async.status == NO_DATA) {
+      failf(data, "Resolving host timed out: %s", conn->host.name);
+      rc = CURLE_OPERATION_TIMEDOUT;
+    }
     else
       rc = CURLE_OPERATION_TIMEDOUT;
   }

