Fix hang of record with esn/syntax (2nd)
[pazpar2-moved-to-github.git] / src / client.c
index 0cf2e07..ee6ead2 100644 (file)
@@ -645,7 +645,7 @@ static void client_record_ingest(struct client *cl)
     }
 }
 
-void client_record_response(struct client *cl)
+void client_record_response(struct client *cl, int *got_records)
 {
     struct connection *co = cl->connection;
     ZOOM_connection link = connection_get_link(co);
@@ -678,6 +678,7 @@ void client_record_response(struct client *cl)
         else
         {
             client_record_ingest(cl);
+            *got_records = 1;
         }
     }
 }