emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/emacsql 3b24b5d17c 002/427: Drop closed-p field.


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 3b24b5d17c 002/427: Drop closed-p field.
Date: Tue, 13 Dec 2022 02:59:22 -0500 (EST)

branch: elpa/emacsql
commit 3b24b5d17cb20c64cb91a26766ad1f4879ce9a5e
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Drop closed-p field.
---
 emacsql.el | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/emacsql.el b/emacsql.el
index 459ac9c128..4c72bfedcd 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -58,7 +58,7 @@
   "Path to the sqlite3 executable.")
 
 (cl-defstruct (emacsql (:constructor emacsql--create))
-  process file closed-p)
+  process file)
 
 (defvar emacsql-connections ()
   "Collection of all known emacsql connections.
@@ -93,10 +93,7 @@ This collection exists for cleanup purposes.")
   "Close connection to EMACSQL database."
   (let ((process (emacsql-process emacsql)))
     (when (and process (process-live-p process))
-      (if (emacsql-closed-p emacsql)
-          (kill-process process)
-        (setf (emacsql-closed-p emacsql) t)
-        (process-send-string process ".exit\n")))))
+      (process-send-string process ".exit\n"))))
 
 (defun emacsql-buffer (emacsql)
   "Get proccess buffer for EMACSQL."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]