mirror of https://github.com/apache/activemq.git
applied fix for http://issues.apache.org/activemq/browse/AMQ-1119
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/branches/activemq-4.0@493644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c224394aa4
commit
43fb483c33
|
@ -18,6 +18,7 @@
|
|||
package org.apache.activemq.transport;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.apache.activemq.command.ShutdownInfo;
|
||||
|
||||
import org.apache.activemq.command.Command;
|
||||
import org.apache.activemq.command.Response;
|
||||
|
@ -40,9 +41,14 @@ public class MutexTransport extends TransportFilter {
|
|||
}
|
||||
}
|
||||
|
||||
public void oneway(Command command) throws IOException {
|
||||
synchronized(writeMutex) {
|
||||
next.oneway(command);
|
||||
public void oneway(Object command) throws IOException{
|
||||
if(command instanceof ShutdownInfo){
|
||||
next.oneway((Command)command);
|
||||
}else{
|
||||
synchronized(writeMutex){
|
||||
next.oneway((Command)command);
|
||||
}
|
||||
next.oneway((Command)command);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue