This commit is contained in:
Clebert Suconic 2017-02-15 08:36:04 -05:00
commit cdc974e71e
1 changed files with 4 additions and 2 deletions

View File

@ -443,8 +443,10 @@ public class AMQPSessionCallback implements SessionCallback {
final Receiver receiver) { final Receiver receiver) {
try { try {
if (address == null) { if (address == null) {
receiver.flow(credits); synchronized (connection.getLock()) {
connection.flush(); receiver.flow(credits);
connection.flush();
}
return; return;
} }
final PagingStore store = manager.getServer().getPagingManager().getPageStore(new SimpleString(address)); final PagingStore store = manager.getServer().getPagingManager().getPageStore(new SimpleString(address));