fixing openwire tests
I removed some valid code while removing dead code.
This commit is contained in:
parent
ea3fef4e52
commit
cc9cacef14
|
@ -575,12 +575,17 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
|
|||
}
|
||||
|
||||
public void dispatchAsync(Command message) {
|
||||
if (message.isMessageDispatch()) {
|
||||
MessageDispatch md = (MessageDispatch) message;
|
||||
TransmitCallback sub = md.getTransmitCallback();
|
||||
protocolManager.postProcessDispatch(md);
|
||||
if (sub != null) {
|
||||
sub.onFailure();
|
||||
if (!stopping.get()) {
|
||||
dispatchSync(message);
|
||||
}
|
||||
else {
|
||||
if (message.isMessageDispatch()) {
|
||||
MessageDispatch md = (MessageDispatch) message;
|
||||
TransmitCallback sub = md.getTransmitCallback();
|
||||
protocolManager.postProcessDispatch(md);
|
||||
if (sub != null) {
|
||||
sub.onFailure();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue