mirror of https://github.com/cbeuw/Cloak
Fix a mutex deadlock
This commit is contained in:
parent
c248b59fe1
commit
9fcc328797
|
|
@ -106,7 +106,9 @@ func (sb *switchboard) removeConn(closing *connEnclave) {
|
||||||
}
|
}
|
||||||
if len(sb.ces) == 0 {
|
if len(sb.ces) == 0 {
|
||||||
sb.session.SetTerminalMsg("no underlying connection left")
|
sb.session.SetTerminalMsg("no underlying connection left")
|
||||||
|
sb.cesM.Unlock()
|
||||||
sb.session.Close()
|
sb.session.Close()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
sb.cesM.Unlock()
|
sb.cesM.Unlock()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue