aboutsummaryrefslogtreecommitdiff
path: root/gptel-tools
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-16 11:28:25 -0500
committerCraig Jennings <c@cjennings.net>2026-05-16 11:28:25 -0500
commit04afd842c0192c105eee8e106beebc9bba6ceba0 (patch)
tree4ed5f9c2634b21a119ff4d8ae7ee6890395fb87f /gptel-tools
parentda74eceffe35f235a6810bd4342a6d00f70ee2d9 (diff)
downloaddotemacs-04afd842c0192c105eee8e106beebc9bba6ceba0.tar.gz
dotemacs-04afd842c0192c105eee8e106beebc9bba6ceba0.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 'gptel-tools')
0 files changed, 0 insertions, 0 deletions