mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-10 23:03:31 -07:00
socket: Fix bad mutex unlock
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user