From: Eshel Yaron Date: Sun, 18 Dec 2022 11:41:16 +0000 (+0200) Subject: FIXED: possible crash after calling sweeprolog-restart X-Git-Tag: V9.1.2-sweep-0.10.0~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f9c04f36dc9f6c0fe406526648d1f91712baa8e;p=sweep.git FIXED: possible crash after calling sweeprolog-restart --- 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))