Fix bug where we were not properly draining all the links.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1404994 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2012-11-02 15:08:15 +00:00
parent 6a253ebd3f
commit ae24f5ff25
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class AmqpProtocolConverter {
link = protonConnection.linkHead(ACTIVE_STATE, ALL_STATES);
while (link != null) {
((AmqpDeliveryListener)link.getContext()).drainCheck();
link = link.next(ACTIVE_STATE, CLOSED_STATE);
link = link.next(ACTIVE_STATE, ALL_STATES);
}