fix spurious error

This commit is contained in:
Christien Rioux 2024-02-29 11:25:09 -05:00
parent 11d621c9be
commit 380ac1883f

View File

@ -898,6 +898,12 @@ where
for (wn, w) in watch.watchers.iter_mut().enumerate() { for (wn, w) in watch.watchers.iter_mut().enumerate() {
// Get the subkeys that have changed // Get the subkeys that have changed
let subkeys = w.changed.clone(); let subkeys = w.changed.clone();
// If no subkeys on this watcher have changed then skip it
if subkeys.is_empty() {
continue;
}
w.changed.clear(); w.changed.clear();
// Reduce the count of changes sent // Reduce the count of changes sent