From b0d1ba321a6bd82a2b511e4a707248ccc3c719e0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 21 Nov 2013 12:55:25 +0100 Subject: [PATCH] ZOOM: stop fetching if present response has no records YAZ-710 --- src/zoom-z3950.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zoom-z3950.c b/src/zoom-z3950.c index f2517e0..e8304c3 100644 --- a/src/zoom-z3950.c +++ b/src/zoom-z3950.c @@ -1386,6 +1386,7 @@ static void handle_Z3950_records(ZOOM_connection c, Z_Records *sr, "ZOOM C generated. Present phase and no records"); ZOOM_record_cache_add(resultset, myrec, *start, syntax, elementSetName, schema, 0); + *count = 0; } } else if (present_phase) @@ -1398,6 +1399,7 @@ static void handle_Z3950_records(ZOOM_connection c, Z_Records *sr, "ZOOM C generated: Present response and no records"); ZOOM_record_cache_add(resultset, myrec, *start, syntax, elementSetName, schema, 0); + *count = 0; } } } -- 1.7.10.4