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

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

[nongnu] elpa/hyperdrive 41646669a9 1/7: Fix: (h/stop) Set h//gateway-st


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 41646669a9 1/7: Fix: (h/stop) Set h//gateway-starting-timer to nil
Date: Sat, 31 Aug 2024 13:00:19 -0400 (EDT)

branch: elpa/hyperdrive
commit 41646669a921a56f6674b9ec1a94a093bd420f31
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>

    Fix: (h/stop) Set h//gateway-starting-timer to nil
    
    In addition to canceling the timer, we need to set the variable to nil
    so that other predicates work as expected.
---
 hyperdrive.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hyperdrive.el b/hyperdrive.el
index 01b47b71fc..f5919f2a4d 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -132,7 +132,8 @@ which see."
   ;; Cancel starting timer after calling h/gateway-stop-function since
   ;; h/gateway-ready-hook should still run if h/gateway-stop-function fails.
   (when (timerp h//gateway-starting-timer)
-    (cancel-timer h//gateway-starting-timer))
+    (cancel-timer h//gateway-starting-timer)
+    (setf h//gateway-starting-timer nil))
   (h//gateway-wait-for-dead))
 
 ;;;###autoload



reply via email to

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