Skip to content

Commit 4a18f09

Browse files
author
Steve Powell
committed
Revert update from bug24268 (revision c406a0238638)
2 parents 7abddda + 6666ab0 commit 4a18f09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,12 @@ public void clearConfirmListeners() {
161161
public boolean waitForConfirms()
162162
throws InterruptedException
163163
{
164-
long seqHead = this.getNextPublishSeqNo();
165164
synchronized (unconfirmedSet) {
166165
while (true) {
167166
if (getCloseReason() != null) {
168167
throw Utility.fixStackTrace(getCloseReason());
169168
}
170-
if (unconfirmedSet.headSet(seqHead).isEmpty()) {
169+
if (unconfirmedSet.isEmpty()) {
171170
boolean aux = onlyAcksReceived;
172171
onlyAcksReceived = true;
173172
return aux;

0 commit comments

Comments
 (0)