activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r511900 - /activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/transport/MutexTransport.java
Date Mon, 26 Feb 2007 17:04:53 GMT
Author: jstrachan
Date: Mon Feb 26 09:04:52 2007
New Revision: 511900

URL: http://svn.apache.org/viewvc?view=rev&rev=511900
Log:
backported fix for AMQ-1119

Modified:
    activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/transport/MutexTransport.java

Modified: activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/transport/MutexTransport.java
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/transport/MutexTransport.java?view=diff&rev=511900&r1=511899&r2=511900
==============================================================================
--- activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/transport/MutexTransport.java
(original)
+++ activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/transport/MutexTransport.java
Mon Feb 26 09:04:52 2007
@@ -18,6 +18,7 @@
 package org.apache.activemq.transport;
 
 import java.io.IOException;
+import org.apache.activemq.command.ShutdownInfo;
 
 
 
@@ -38,9 +39,13 @@
         }
     }
 
-    public void oneway(Object command) throws IOException {
-        synchronized(writeMutex) {
+    public void oneway(Object command) throws IOException{
+        if(command instanceof ShutdownInfo){
             next.oneway(command);
+        }else{
+            synchronized(writeMutex){
+                next.oneway(command);
+            }
         }
     }
 



Mime
View raw message