git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a660ba
)
unlock connection when event is sent
author
Michal Voců
<michal@ruk.cuni.cz>
Mon, 21 May 2012 16:57:32 +0000
(16:57 +0000)
committer
Michal Voců
<michal@ruk.cuni.cz>
Mon, 21 May 2012 16:57:32 +0000
(16:57 +0000)
org.glite.lb.client/src/producer.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.client/src/producer.c
b/org.glite.lb.client/src/producer.c
index
b8a62e2
..
0cb1578
100644
(file)
--- 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));