fixing openwire tests

I removed some valid code while removing dead code.
This commit is contained in:
Clebert Suconic 2015-08-31 08:13:55 -04:00
parent ea3fef4e52
commit cc9cacef14
1 changed files with 11 additions and 6 deletions

View File

@ -575,6 +575,10 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
}
public void dispatchAsync(Command message) {
if (!stopping.get()) {
dispatchSync(message);
}
else {
if (message.isMessageDispatch()) {
MessageDispatch md = (MessageDispatch) message;
TransmitCallback sub = md.getTransmitCallback();
@ -584,6 +588,7 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
}
}
}
}
public void dispatchSync(Command message) {
try {