Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSCursor: Fix connection closed check
Since the connection closes itself on an `asyncio.CancelledError`, it cannot be used afterwards. `SSCursor.close` attempts to clear some unfinished state first before closing using `Connection._finish_unbuffered_query`, but that call fails if the connection has been closed already and SSCursor itself does not properly check that.
- Loading branch information