mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-07 18:49:14 +00:00
ARTEMIS-1732 Fixing AMQPSenderTest
This commit is contained in:
parent
a7e4ce490b
commit
e290071ced
@ -581,7 +581,9 @@ public class AMQPSessionCallback implements SessionCallback {
|
||||
Runnable creditRunnable = () -> {
|
||||
connection.lock();
|
||||
try {
|
||||
receiver.flow(credits);
|
||||
if (receiver.getRemoteCredit() <= threshold) {
|
||||
receiver.flow(credits);
|
||||
}
|
||||
} finally {
|
||||
connection.unlock();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user