Don't queue data to send after we've initiated a disconnect of the client

This commit is contained in:
Karl Seguin
2025-07-15 17:58:57 +08:00
parent 3bc654bf97
commit 4bf92a34f6

View File

@@ -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;