We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a98bd8 commit 2b09eebCopy full SHA for 2b09eeb
src/com/rabbitmq/client/impl/ChannelN.java
@@ -162,12 +162,13 @@ public ConfirmListener getConfirmListener() {
162
public boolean waitForConfirms()
163
throws InterruptedException
164
{
165
+ long seqHead = this.getNextPublishSeqNo();
166
synchronized (unconfirmedSet) {
167
while (true) {
168
if (getCloseReason() != null) {
169
throw Utility.fixStackTrace(getCloseReason());
170
}
- if (unconfirmedSet.isEmpty()) {
171
+ if (unconfirmedSet.headSet(seqHead).isEmpty()) {
172
boolean aux = onlyAcksReceived;
173
onlyAcksReceived = true;
174
return aux;
0 commit comments