Updated Branches:
  refs/heads/master fd03dc872 -> 51bdf0996

removed redundant close() as we close in the finally block - which avoids a 
double close() call


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/51bdf099
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/51bdf099
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/51bdf099

Branch: refs/heads/master
Commit: 51bdf0996772db221391984dab410b2607bb3cf2
Parents: fd03dc8
Author: James Strachan <[email protected]>
Authored: Tue Jul 16 09:50:34 2013 +0100
Committer: James Strachan <[email protected]>
Committed: Tue Jul 16 09:50:34 2013 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/impl/ActiveMQUuidGenerator.java  | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/51bdf099/camel-core/src/main/java/org/apache/camel/impl/ActiveMQUuidGenerator.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/impl/ActiveMQUuidGenerator.java 
b/camel-core/src/main/java/org/apache/camel/impl/ActiveMQUuidGenerator.java
index 110715e..3346f21 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/ActiveMQUuidGenerator.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/ActiveMQUuidGenerator.java
@@ -70,7 +70,6 @@ public class ActiveMQUuidGenerator implements UuidGenerator {
                 ss = new ServerSocket(idGeneratorPort);
                 stub = "-" + ss.getLocalPort() + "-" + 
System.currentTimeMillis() + "-";
                 Thread.sleep(100);
-                ss.close();
             } catch (Exception ioe) {
                 if (LOG.isTraceEnabled()) {
                     LOG.trace("Cannot generate unique stub by using DNS and 
binding to local port: " + idGeneratorPort, ioe);

Reply via email to