ARTEMIS-908: Ensure that connection lock is held when flushing
This commit is contained in:
parent
92290ba00f
commit
5f6a390b60
|
@ -443,8 +443,10 @@ public class AMQPSessionCallback implements SessionCallback {
|
|||
final Receiver receiver) {
|
||||
try {
|
||||
if (address == null) {
|
||||
receiver.flow(credits);
|
||||
connection.flush();
|
||||
synchronized (connection.getLock()) {
|
||||
receiver.flow(credits);
|
||||
connection.flush();
|
||||
}
|
||||
return;
|
||||
}
|
||||
final PagingStore store = manager.getServer().getPagingManager().getPageStore(new SimpleString(address));
|
||||
|
|
Loading…
Reference in New Issue