From 7f9c04f36dc9f6c0fe406526648d1f91712baa8e Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sun, 18 Dec 2022 13:41:16 +0200 Subject: [PATCH] FIXED: possible crash after calling sweeprolog-restart --- sweeprolog.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sweeprolog.el b/sweeprolog.el index e444867..0527235 100644 --- a/sweeprolog.el +++ b/sweeprolog.el @@ -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)) -- 2.39.2