From: Adam Dickmeiss Date: Wed, 7 Apr 2010 11:40:00 +0000 (+0200) Subject: Use new YAZ function ZOOM_connection_exec_task . X-Git-Tag: v1.4.0~45 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=d95f1578e8a8ef260a95dde9bece743ad6b49a00;p=pazpar2-moved-to-github.git Use new YAZ function ZOOM_connection_exec_task . 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. --- diff --git a/src/connection.c b/src/connection.c index 2d5d4c4..8d0d480 100644 --- a/src/connection.c +++ b/src/connection.c @@ -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)