~rockorager/comlink

irc: update PING parameter v1 PROPOSED

Gregory Anders: 1
 irc: update PING parameter

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rockorager/comlink/patches/53766/mbox | git am -3
Learn more about email & git

[PATCH] irc: update PING parameter Export this patch

s/zirc/comlink
---
 src/irc.zig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/irc.zig b/src/irc.zig
index b6598ae..b4e6292 100644
--- a/src/irc.zig
+++ b/src/irc.zig
@@ -506,7 +506,7 @@ pub const Client = struct {
    pub fn deinit(self: *Client) void {
        self.should_close = true;
        if (self.config.tls) {
            _ = self.client.writeEnd(self.stream, "PING zirc\r\n", true) catch |err| {
            _ = self.client.writeEnd(self.stream, "PING comlink\r\n", true) catch |err| {
                log.err("couldn't close tls conn: {}", .{err});
            };
        }
@@ -605,7 +605,7 @@ pub const Client = struct {
                    }
                    if (now - last_msg > keep_alive) {
                        // send a ping
                        try self.app.queueWrite(self, "PING zirc\r\n");
                        try self.app.queueWrite(self, "PING comlink\r\n");
                        continue;
                    }
                    continue;
-- 
2.45.2