From b116481497733663a47344085d9bd3c35b1574d9 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 6 Nov 2025 18:48:21 -0800 Subject: [PATCH] Refactor: Ensure heartbeat alarm is always cleared --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index a1a7cf2..60e5c04 100644 --- a/index.js +++ b/index.js @@ -358,7 +358,6 @@ export class MyDurableObject { } async stopHeartbeat() { - if (!this.hbActive) return; this.hbActive = false; const ageSeconds = (this.age * HB_INTERVAL_MS) / 1000; this.notify(`Run ${this.rid} ended. Phase: ${this.phase}. Age: ${ageSeconds.toFixed(1)}s.`, 3, ['stop_sign']);