You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: make DqliteConnection.close() safely idempotent
close() previously called _check_in_use() up front, which raised
InterfaceError for pool-released connections — breaking __aexit__ and
try/finally cleanup patterns that hold the connection across release.
A concurrent second close could also race on nulling _protocol after
wait_closed().
Short-circuit when _pool_released or _protocol is already None. Null
_protocol before awaiting wait_closed so a concurrent second call
sees already-closed state.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments