mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(connlib): only disable not-yet-disabled resources (#8525)
Didn't test this but I think the logic checks out (and our proptests should catch any bugs here). Fixes: #8523
This commit is contained in:
@@ -965,8 +965,9 @@ impl ClientState {
|
||||
self.add_resource(resource.clone());
|
||||
}
|
||||
|
||||
for disabled_resource in &new_disabled_resources {
|
||||
self.disable_resource(*disabled_resource);
|
||||
for new_disabled_resource in new_disabled_resources.difference(¤t_disabled_resources)
|
||||
{
|
||||
self.disable_resource(*new_disabled_resource);
|
||||
}
|
||||
|
||||
self.maybe_update_cidr_resources();
|
||||
|
||||
Reference in New Issue
Block a user