QueryParser: Don't send notifications if the node's been deleted.

Gets rid of redundant messages under B_QUERY_WATCH_ALL.
This commit is contained in:
Augustin Cavalier
2026-01-29 18:10:12 -05:00
parent 377f154bf0
commit 0af3006721
4 changed files with 19 additions and 0 deletions
@@ -1660,6 +1660,10 @@ Query<QueryPolicy>::_EvaluateLiveUpdate(Entry* entry, Node* node, const char* at
// entry was removed
opcode = B_ENTRY_REMOVED;
} else if ((fFlags & B_QUERY_WATCH_ALL) != 0) {
if (QueryPolicy::NodeIsDeleted(node)) {
// don't notify
return;
}
// still in query, all attribute changes watched
opcode = B_ATTR_CHANGED;
} else {