From: Jan Pospíšil Date: Thu, 14 Jun 2007 14:05:30 +0000 (+0000) Subject: close conn on failre X-Git-Tag: glite-lb-build_R_1_6_0_1~50 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=c0e6ae2d6d8b0ed6e4a098efe030182b7905a6de;p=jra1mw.git close conn on failre --- diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index 5be5dc5..0032513 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -99,7 +99,6 @@ int edg_wll_DoLogEvent( goto edg_wll_DoLogEvent_end; } - /* why? sleep(3); */ /* send message */ if ((ret = edg_wll_log_write(ctx,conn,logline)) == -1) { edg_wll_UpdateError(ctx,EDG_WLL_IL_PROTO,"edg_wll_DoLogEvent(): edg_wll_log_write error"); @@ -114,7 +113,7 @@ int edg_wll_DoLogEvent( } edg_wll_DoLogEvent_end: -// XXX: no close if using connpool: edg_wll_log_close(ctx,&conn); + if (ret) edg_wll_log_close(ctx,conn); return handle_errors(ctx,answer,"edg_wll_DoLogEvent()"); }