csd-filter-add/remove: add missing applyPending()

A transaction is now necessary to update border state.
This commit is contained in:
Isaac Freund 2023-02-28 23:00:02 +01:00
parent 8cb5ca9041
commit 07154720fa
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -90,6 +90,7 @@ pub fn csdFilterAdd(
gop.key_ptr.* = try util.gpa.dupe(u8, key); gop.key_ptr.* = try util.gpa.dupe(u8, key);
csdFilterUpdateViews(kind, key, .add); csdFilterUpdateViews(kind, key, .add);
server.root.applyPending();
} }
pub fn csdFilterRemove( pub fn csdFilterRemove(
@ -110,6 +111,7 @@ pub fn csdFilterRemove(
if (map.fetchRemove(key)) |kv| { if (map.fetchRemove(key)) |kv| {
util.gpa.free(kv.key); util.gpa.free(kv.key);
csdFilterUpdateViews(kind, key, .remove); csdFilterUpdateViews(kind, key, .remove);
server.root.applyPending();
} }
} }