Title: [662] trunk/core/src/main/java/org/servicemix/jbi/nmr/flow/seda/SedaQueue.java: Remove log when SedaQueue thread is stopped and interrupt it at shutdown
Revision
662
Author
gnt
Date
2005-10-25 15:43:47 -0400 (Tue, 25 Oct 2005)

Log Message

Remove log when SedaQueue thread is stopped and interrupt it at shutdown

Modified Paths

Diff

Modified: trunk/core/src/main/java/org/servicemix/jbi/nmr/flow/seda/SedaQueue.java (661 => 662)

--- trunk/core/src/main/java/org/servicemix/jbi/nmr/flow/seda/SedaQueue.java	2005-10-25 19:40:17 UTC (rev 661)
+++ trunk/core/src/main/java/org/servicemix/jbi/nmr/flow/seda/SedaQueue.java	2005-10-25 19:43:47 UTC (rev 662)
@@ -170,6 +170,7 @@
         running.set(false);
         if (thread != null) {
             try {
+                thread.interrupt();
                 thread.join();
             } catch (Exception e) {
                 log.warn("Error stopping thread", e);
@@ -232,6 +233,9 @@
                 }
             }
             catch (InterruptedException e) {
+                if (!running.get()) {
+                    return;
+                }
                 log.warn(this + " interrupted", e);
             } catch (WorkException e) {
                 log.error(this + " Gor error processing exchange", e);

Reply via email to