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