mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
Don't queue data to send after we've initiated a disconnect of the client
This commit is contained in:
@@ -633,6 +633,10 @@ pub const Client = struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn queueSend(self: *Self) void {
|
fn queueSend(self: *Self) void {
|
||||||
|
if (self.connected == false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const node = self.send_queue.first orelse {
|
const node = self.send_queue.first orelse {
|
||||||
// no more messages to send;
|
// no more messages to send;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user