[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive ac70ecfaa1 1/7: Change: (h/stop) Error if gatew
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive ac70ecfaa1 1/7: Change: (h/stop) Error if gateway already stopped |
Date: |
Sat, 31 Aug 2024 10:00:33 -0400 (EDT) |
branch: elpa/hyperdrive
commit ac70ecfaa1536907ffb2f58b341e94c450d957cc
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (h/stop) Error if gateway already stopped
---
hyperdrive.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hyperdrive.el b/hyperdrive.el
index 71b8e87ede..42959f21f6 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -120,7 +120,11 @@ which see."
Calls function set in option `hyperdrive-gateway-stop-function',
which see."
(interactive)
- (funcall h/gateway-stop-function)
+ (cond
+ ((and (not (h//gateway-ready-p)) (not (h/gateway-live-p)))
+ (h/user-error "Gateway already stopped"))
+ (t
+ (funcall h/gateway-stop-function)))
(when (timerp h//gateway-starting-timer)
(cancel-timer h//gateway-starting-timer))
(h//gateway-wait-for-dead))
- [nongnu] elpa/hyperdrive updated (c05904f585 -> 5e34cc22d0), ELPA Syncer, 2024/08/31
- [nongnu] elpa/hyperdrive 0333750f78 2/7: Change: (h/start) Error if gateway is stopping, ELPA Syncer, 2024/08/31
- [nongnu] elpa/hyperdrive ac70ecfaa1 1/7: Change: (h/stop) Error if gateway already stopped,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 6be7398ca1 3/7: Change: (h/start) Skip h//gateway-wait-for-ready when ready or live, ELPA Syncer, 2024/08/31
- [nongnu] elpa/hyperdrive e5538e547d 4/7: Fix: (h/gateway-dead-hook) Typos, ELPA Syncer, 2024/08/31
- [nongnu] elpa/hyperdrive 5f9e66ea03 6/7: Change: (h/start) Check h//gateway-starting-timer, ELPA Syncer, 2024/08/31
- [nongnu] elpa/hyperdrive cc220dfaff 5/7: Fix: (hyperdrive-stop) Error when gateway already stopping, ELPA Syncer, 2024/08/31
- [nongnu] elpa/hyperdrive 5e34cc22d0 7/7: Comment: (h/stop) Explain order of cancelling timer, ELPA Syncer, 2024/08/31