From 4254672133159b175ad8942e607f29adabd95ede Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Wed, 19 Apr 2017 08:50:57 +1000 Subject: [PATCH] socket: Fix bad mutex unlock --- irc/socket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/socket.go b/irc/socket.go index 7e26727d..0e99f622 100644 --- a/irc/socket.go +++ b/irc/socket.go @@ -180,7 +180,7 @@ func (socket *Socket) RunSocketWriter() { for _, line := range socket.linesToSend { sendQBytes += uint64(len(line)) if socket.MaxSendQBytes < sendQBytes { - socket.linesToSendMutex.Unlock() + // don't unlock mutex because this break is just to escape this for loop break } }