Commit e585342b authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #771 from akrherz/of1310

OF-1310 Fix removal of last item of pubsub node
parents e72af6b2 e33ed6b6
......@@ -283,6 +283,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