Skip to content

Commit aa07b3b

Browse files
authored
Fix deadlock (#3904)
1 parent 2bef214 commit aa07b3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/internal/peer/conn.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,7 @@ func (conn *Conn) evalStatus() ConnStatus {
691691
}
692692

693693
func (conn *Conn) isConnectedOnAllWay() (connected bool) {
694-
conn.mu.Lock()
695-
defer conn.mu.Unlock()
694+
// would be better to protect this with a mutex, but it could cause deadlock with Close function
696695

697696
defer func() {
698697
if !connected {

0 commit comments

Comments
 (0)