Avoid dead-lock between host->mutex and session lock
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 20 Feb 2013 10:39:26 +0000 (11:39 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 20 Feb 2013 10:39:26 +0000 (11:39 +0100)
Simply do not call non_block_events. It does nothing in the case
of a timeout.

src/connection.c

index ce9b46d..4c165e0 100644 (file)
@@ -319,8 +319,6 @@ static void connection_handler(IOCHAN iochan, int event)
     {
         ZOOM_connection_fire_event_timeout(co->link);
 
-        non_block_events(cl, co);
-
         remove_connection_from_host(co);
         yaz_mutex_leave(host->mutex);
         connection_destroy(co);