From 59c273495ce6fc07e366659f0070eda639812d94 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Mon, 21 May 2012 16:57:32 +0000 Subject: [PATCH] unlock connection when event is sent --- org.glite.lb.client/src/producer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index b8a62e2..0cb1578 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -129,7 +129,8 @@ int edg_wll_DoLogEvent( edg_wll_UpdateError(ctx,EDG_WLL_IL_PROTO,"edg_wll_DoLogEvent(): edg_wll_log_read error"); edg_wll_DoLogEvent_end: - if (ret == -1 && conn >= 0) edg_wll_log_close(ctx,conn); + if (ret == -1 && conn >= 0) { edg_wll_log_close(ctx,conn); } + else if(conn >= 0) { edg_wll_connectionUnlock(ctx, conn); } } while (++attempt <= 2 && (answer == ENOTCONN || answer == EPIPE)); -- 1.8.2.3