From: Michal Voců Date: Mon, 21 May 2012 16:57:32 +0000 (+0000) Subject: unlock connection when event is sent X-Git-Tag: canl_merge_branch_1_0_head_take_2_dst~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=59c273495ce6fc07e366659f0070eda639812d94;p=jra1mw.git unlock connection when event is sent --- 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));