The blocked show now works better (bug 2246).
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Oct 2008 15:09:23 +0000 (17:09 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Oct 2008 15:09:23 +0000 (17:09 +0200)
src/connection.c

index 487f511..e1cf29e 100644 (file)
@@ -232,6 +232,7 @@ static void connection_handler(IOCHAN i, int event)
                 switch (event) 
                 {
                 case ZOOM_EVENT_END:
+                    client_set_state(co->client, Client_Idle);
                     break;
                 case ZOOM_EVENT_SEND_DATA:
                     break;
@@ -243,7 +244,6 @@ static void connection_handler(IOCHAN i, int event)
                     client_set_state(co->client, Client_Working);
                     break;
                 case ZOOM_EVENT_RECV_APDU:
-                    client_set_state(co->client, Client_Idle);
                     break;
                 case ZOOM_EVENT_CONNECT:
                     yaz_log(YLOG_LOG, "Connected to %s", client_get_url(cl));