diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-16 11:28:25 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-16 11:28:25 -0500 |
| commit | b35d10bae7315fe3e497f1188bbe5ce86cef1bbf (patch) | |
| tree | fc5af20dff74064e9578d2ba2ca03c7e8f0ac6e8 /tests/test-gptel-tools-git-status.el | |
| parent | 63ae6e683d5166f744e8e7d45fe9a02d8a145088 (diff) | |
| download | dotemacs-b35d10bae7315fe3e497f1188bbe5ce86cef1bbf.tar.gz dotemacs-b35d10bae7315fe3e497f1188bbe5ce86cef1bbf.zip | |
fix(config-utilities): guard emacsql-close against nil sqlite handle
EmacSQL 4.3.1 registers a finalizer per connection that calls
emacsql-close after GC. The sqlite-builtin and sqlite-module backends
clear their handle slot during an explicit close, so the finalizer
later runs emacsql-close on a closed connection and sqlite-close fires:
finalizer failed: (wrong-type-argument sqlitep nil)
Adds an :around method on emacsql-close for both backends that
short-circuits when the handle is already nil. Requires cl-generic
and eieio at the top of the file so the cl-defmethod forms expand.
Diffstat (limited to 'tests/test-gptel-tools-git-status.el')
0 files changed, 0 insertions, 0 deletions
