mirror of https://github.com/apache/activemq.git
Don't swallow the exception. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1432963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ae61847d02
commit
1958aeb069
|
@ -896,7 +896,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
}
|
||||
dispatch(command);
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
} catch (IOException e) {
|
||||
if (messageDispatch != null) {
|
||||
TransmitCallback sub = messageDispatch.getTransmitCallback();
|
||||
broker.postProcessDispatch(messageDispatch);
|
||||
|
@ -904,6 +904,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
sub.onFailure();
|
||||
}
|
||||
messageDispatch = null;
|
||||
throw e;
|
||||
}
|
||||
} finally {
|
||||
if (messageDispatch != null) {
|
||||
|
|
Loading…
Reference in New Issue