ARTEMIS-1732 Fixing AMQPSenderTest
This commit is contained in:
parent
a7e4ce490b
commit
e290071ced
|
@ -581,7 +581,9 @@ public class AMQPSessionCallback implements SessionCallback {
|
||||||
Runnable creditRunnable = () -> {
|
Runnable creditRunnable = () -> {
|
||||||
connection.lock();
|
connection.lock();
|
||||||
try {
|
try {
|
||||||
|
if (receiver.getRemoteCredit() <= threshold) {
|
||||||
receiver.flow(credits);
|
receiver.flow(credits);
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
connection.unlock();
|
connection.unlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue