mcp: use acquire/release ordering for server running flag

This commit is contained in:
Adrià Arrufat
2026-03-01 21:39:38 +09:00
parent 254984b600
commit 952dfbef36
2 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ fn initResources(allocator: std.mem.Allocator) ![]const protocol.Resource {
}
pub fn deinit(self: *Self) void {
self.is_running.store(false, .seq_cst);
self.is_running.store(false, .release);
self.browser.deinit();
self.allocator.destroy(self.browser);