Skip to content

Commit

Permalink
Notify the batch delivery listener in any case.
Browse files Browse the repository at this point in the history
  • Loading branch information
armiol committed Aug 31, 2019
1 parent feb7f61 commit 0ab5620
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,13 @@ private void deliverVia(BatchDeliveryListener<I> dispatcher,
@SuppressWarnings("unchecked") // Only IDs of type `I` are stored.
I id = (I) Identifier.unpack(packedId);
dispatcher.onStart(id);
for (InboxMessage message : messages) {
doDeliver(cmdDispatcher, eventDispatcher, message);
try {
for (InboxMessage message : messages) {
doDeliver(cmdDispatcher, eventDispatcher, message);
}
} finally {
dispatcher.onEnd(id);
}
dispatcher.onEnd(id);
} else {
doDeliver(cmdDispatcher, eventDispatcher, messages.get(0));
}
Expand Down

0 comments on commit 0ab5620

Please sign in to comment.