Use new YAZ function ZOOM_connection_exec_task .
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 7 Apr 2010 11:40:00 +0000 (13:40 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 7 Apr 2010 11:40:00 +0000 (13:40 +0200)
Pazpar2 is using ZOOM_connection_exec_task instead of ZOOM_event_nonblock
to avoid that we loose any events. ZOOM_connection_exec_task will just
ensure that any outstanding tasks are initiated - such as connect,
earch, present etc.

src/connection.c

index 2d5d4c4..8d0d480 100644 (file)
@@ -236,9 +236,9 @@ static void non_block_events(struct connection *co)
 
 void connection_continue(struct connection *co)
 {
-    ZOOM_connection link = co->link;
-
-    ZOOM_event_nonblock(1, &link);
+    int r = ZOOM_connection_exec_task(co->link);
+    if (!r)
+        yaz_log(YLOG_WARN, "No task was executed for connection");
 }
 
 static void connection_handler(IOCHAN iochan, int event)