From 70d61c514058eb5e6da0c8b2f436e89ea7d20b1d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 12 Mar 2010 16:24:01 +0100 Subject: [PATCH] Fix connection_is_idle test for idleness Function connection_is_idle no longer returns 1 (idle) if ZOOM_connection_peek_event returns ZOOM_EVENT_END. The problem is that when this is returned another thread may still be chewing on a record. --- src/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index 1525dfb..cfa1146 100644 --- a/src/connection.c +++ b/src/connection.c @@ -79,7 +79,7 @@ static int connection_is_idle(struct connection *co) if (!ZOOM_connection_is_idle(link)) return 0; event = ZOOM_connection_peek_event(link); - if (event == ZOOM_EVENT_NONE || event == ZOOM_EVENT_END) + if (event == ZOOM_EVENT_NONE) return 1; else return 0; -- 1.7.10.4