diff --git a/src/source_plugin/client/zone_creation_watcher.rs b/src/source_plugin/client/zone_creation_watcher.rs index cbfb0f4..7b9f5cf 100644 --- a/src/source_plugin/client/zone_creation_watcher.rs +++ b/src/source_plugin/client/zone_creation_watcher.rs @@ -45,8 +45,8 @@ impl ZoneWatcher { } } - // purge everything that's not in the current ready-zone list - last_ready_zones.retain(|existing_zid| ready_zones.contains(existing_zid)); + // update tracking: purge zones no longer ready, add newly ready zones + last_ready_zones = ready_zones; } Err(error) => { error!("failed to read zones from daemon: {error}");