From 0bb5b3d39bfed6694315ad99246e2c8177c57225 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 20 Sep 2007 08:34:50 +0000 Subject: [PATCH] More active trickery. Setting state to Client_Continue instead Client_Idle when receiving successful responses (init, search, present). --- src/client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client.c b/src/client.c index f42ec23..7e0f729 100644 --- a/src/client.c +++ b/src/client.c @@ -1,4 +1,4 @@ -/* $Id: client.c,v 1.23 2007-09-20 08:13:27 adam Exp $ +/* $Id: client.c,v 1.24 2007-09-20 08:34:50 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -507,7 +507,7 @@ void client_init_response(struct client *cl, Z_APDU *a) yaz_log(YLOG_DEBUG, "Init response %s", cl->database->database->url); if (*r->result) - cl->state = Client_Idle; + cl->state = Client_Continue; else cl->state = Client_Failed; // FIXME need to do something to the connection } @@ -626,7 +626,7 @@ void client_search_response(struct client *cl, Z_APDU *a) cl->database->database->url); ingest_records(cl, r->records); } - cl->state = Client_Idle; + cl->state = Client_Continue; } else { /*"FAILED"*/ @@ -720,7 +720,7 @@ void client_present_response(struct client *cl, Z_APDU *a) } else ingest_records(cl, recs); - cl->state = Client_Idle; + cl->state = Client_Continue; } else if (*r->presentStatus) { -- 1.7.10.4