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:
Timothy A. Bish 2013-01-14 15:57:05 +00:00
parent ae61847d02
commit 1958aeb069
1 changed files with 2 additions and 1 deletions

View File

@ -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) {