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