You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smallrye-reactive-messaging-amqp/src/main/java/io/smallrye/reactive/messaging/amqp/AmqpCreditBasedSender.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ private long setCreditsAndRequest(AmqpSender sender) {
168
168
subscription.request(request);
169
169
returncredits;
170
170
}
171
-
if (credits== 0L && subscription != Subscriptions.CANCELLED) {
171
+
if (credits<= 0L && subscription != Subscriptions.CANCELLED) {
172
172
onNoMoreCredit(sender);
173
173
}
174
174
return0L;
@@ -195,7 +195,7 @@ public void onNext(Message<?> message) {
195
195
if (tuple != null) { // No serialization issue
196
196
subscriber.onNext(tuple.getItem1());
197
197
longremainingCredits = tuple.getItem3();
198
-
if (remainingCredits== 0) { // no more credit, request more
198
+
if (remainingCredits<= 0) { // no more credit, request more
0 commit comments