Commit f8a7cd67 authored by akrherz's avatar akrherz

OF-1310 Fix removal of last item of pubsub node

patch contributed by Evgeny Kuklo
parent f4234886
......@@ -287,6 +287,9 @@ public class LeafNode extends Node {
// Remove deleted items from the database
for (PublishedItem item : toDelete) {
PubSubPersistenceManager.removePublishedItem(item);
if (lastPublished != null && lastPublished.getID().equals(item.getID())) {
lastPublished = null;
}
}
if (isNotifiedOfRetract()) {
// Broadcast notification deletion to subscribers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment