mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Fix segfault when multiple inflight Send completions fail
This commit is contained in:
@@ -223,14 +223,14 @@ const Server = struct {
|
|||||||
&self.close_completion,
|
&self.close_completion,
|
||||||
socket,
|
socket,
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
fn callbackClose(self: *Server, completion: *Completion, _: CloseError!void) void {
|
|
||||||
std.debug.assert(completion == &self.close_completion);
|
|
||||||
var client = self.client.?;
|
var client = self.client.?;
|
||||||
client.deinit();
|
client.deinit();
|
||||||
self.client_pool.destroy(client);
|
self.client_pool.destroy(client);
|
||||||
self.client = null;
|
self.client = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn callbackClose(self: *Server, completion: *Completion, _: CloseError!void) void {
|
||||||
|
std.debug.assert(completion == &self.close_completion);
|
||||||
self.queueAccept();
|
self.queueAccept();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user