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:
Jonas B. Lim 2007-01-07 04:42:06 +00:00
parent c224394aa4
commit 43fb483c33
1 changed files with 9 additions and 3 deletions

View File

@ -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);
}
}