From: Adam Dickmeiss Date: Tue, 22 Jul 2008 12:33:27 +0000 (+0200) Subject: Fixed resolver issues - continued search. X-Git-Tag: v1.1.0~139 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=2c3ba8ff22f015f6832180401bd46b4ea54967d7;p=pazpar2-moved-to-github.git Fixed resolver issues - continued search. --- diff --git a/src/connection.c b/src/connection.c index 197dbcb..77bd8e7 100644 --- a/src/connection.c +++ b/src/connection.c @@ -189,7 +189,7 @@ struct connection *connection_create(struct client *cl) client_set_connection(cl, new); new->link = 0; new->resultset = 0; - new->state = Conn_Connecting; + new->state = Conn_Resolving; if (host->ipport) connection_connect(new); return new; @@ -309,6 +309,7 @@ void connect_resolver_host(struct host *host) else { connection_connect(con); + client_start_search(con->client); } } else @@ -453,7 +454,7 @@ int client_prep_connection(struct client *cl) co = connection_create(cl); } - if (co) + if (co && co->link) return 1; else return 0;