forked from External/ergo
socket: Fix bad mutex unlock
This commit is contained in:
parent
c911ff2bcd
commit
4254672133
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue