branch: elpa/sweeprolog
commit 7f9c04f36dc9f6c0fe406526648d1f91712baa8e
Author: Eshel Yaron <m...@eshelyaron.com>
Commit: Eshel Yaron <m...@eshelyaron.com>

    FIXED: possible crash after calling sweeprolog-restart
---
 sweeprolog.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sweeprolog.el b/sweeprolog.el
index e444867731..0527235ccc 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))
 

Reply via email to