From 3d3aec6979eb8817d086d36d3b38a4f688aef98a Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 4 May 2020 23:42:34 -0400 Subject: [PATCH] fix missing err check, thanks @eklitzke --- irc/socket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/socket.go b/irc/socket.go index 847c47c1..b0fd28b8 100644 --- a/irc/socket.go +++ b/irc/socket.go @@ -216,7 +216,7 @@ func (socket *Socket) performWrite() (closed bool) { var err error if 0 < len(buffers) { - socket.conn.WriteBuffers(buffers) + err = socket.conn.WriteBuffers(buffers) } closed = closed || err != nil