This commit is contained in:
Clebert Suconic 2017-11-07 19:08:40 -05:00
commit d03c4c8cc7
1 changed files with 5 additions and 0 deletions

View File

@ -397,6 +397,11 @@ public final class ChannelImpl implements Channel {
start = now;
}
if (closed && toWait > 0 && response == null) {
Throwable cause = ActiveMQClientMessageBundle.BUNDLE.connectionDestroyed();
throw ActiveMQClientMessageBundle.BUNDLE.unblockingACall(cause);
}
if (response == null) {
throw ActiveMQClientMessageBundle.BUNDLE.timedOutSendingPacket(connection.getBlockingCallTimeout(), packet.getType());
}