Skip to content

Commit 1b6e627

Browse files
ndyakovCopilot
andauthored
Update internal/pool/pool.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1821aa5 commit 1b6e627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pool/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ func (p *ConnPool) queuedNewConn(ctx context.Context) (*Conn, error) {
629629
p.freeTurn()
630630
freeTurnCalled = true
631631
} else {
632-
freeTurnCalled = true // Mark as handled
632+
freeTurnCalled = true // Mark as handled to prevent panic recovery defer from calling freeTurn()
633633
}
634634
}
635635
}(w)

0 commit comments

Comments
 (0)