X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fconnection.c;h=e441514578bcdb9245c8a381c2cc1a8df0e2728b;hb=1a3f3cfb2f6aeb743716924d9081d6dce981b49f;hp=02509cf422798594e3358cc68633e8e0ea67167d;hpb=116eaa2065a4b4fec0dcc55985170e3364132995;p=pazpar2-moved-to-github.git diff --git a/src/connection.c b/src/connection.c index 02509cf..e441514 100644 --- a/src/connection.c +++ b/src/connection.c @@ -496,8 +496,7 @@ static int connection_connect(struct connection *con, iochan_man_t iochan_man) int client_prep_connection(struct client *cl, int operation_timeout, int session_timeout, iochan_man_t iochan_man, - const struct timeval *abstime, - int ok_with_working) + const struct timeval *abstime) { struct connection *co; struct session_database *sdb = client_get_database(cl); @@ -526,8 +525,7 @@ int client_prep_connection(struct client *cl, if (co) { assert(co->host); - if (co->host == host && (client_get_state(cl) == Client_Idle - || ok_with_working)) + if (co->host == host && client_get_state(cl) == Client_Idle) { return 2; }