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…
Reference in New Issue