]> git.eshelyaron.com Git - dict.git/commitdiff
FIXED: possible crash after calling sweeprolog-restart
authorEshel Yaron <me@eshelyaron.com>
Sun, 18 Dec 2022 11:41:16 +0000 (13:41 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 18 Dec 2022 18:16:37 +0000 (20:16 +0200)
sweeprolog.el

index e444867731cde539042b7f3994278fa993dda23d..0527235ccc778334eb57645b77a3fbeb6588d843 100644 (file)
@@ -607,6 +607,8 @@ Otherwise set ARGS to nil."
       (user-error "Cannot restart sweep with running top-level processes")))
   (message "Stoping sweep.")
   (sweeprolog-cleanup)
+  (setq sweeprolog--initialized       nil
+        sweeprolog-prolog-server-port nil)
   (message "Starting sweep.")
   (apply #'sweeprolog-init args))