[Swift-commit] cog r3661
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Mon May 13 22:00:08 CDT 2013
------------------------------------------------------------------------
r3661 | hategan | 2013-05-13 21:59:18 -0500 (Mon, 13 May 2013) | 1 line
fix for bug 990
------------------------------------------------------------------------
Index: modules/karajan/src/org/globus/cog/karajan/workflow/service/channels/AbstractTCPChannel.java
===================================================================
--- modules/karajan/src/org/globus/cog/karajan/workflow/service/channels/AbstractTCPChannel.java (revision 3660)
+++ modules/karajan/src/org/globus/cog/karajan/workflow/service/channels/AbstractTCPChannel.java (working copy)
@@ -115,7 +115,12 @@
}
public void close() {
- closing = true;
+ synchronized(this) {
+ if (closing || socket == null) {
+ return;
+ }
+ closing = true;
+ }
try {
if (!socket.isClosed()) {
socket.close();
More information about the Swift-commit
mailing list