Commit 0fa2c8b
committed
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.1 parent 83aa96e commit 0fa2c8b
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
| 602 | + | |
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
| |||
0 commit comments