@feigi/fleet-ctl 3.100.0 → 3.100.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -118,11 +118,10 @@ function arm(pi, ctx) {
|
|
|
118
118
|
const now = Date.now();
|
|
119
119
|
const due = alarmDue({ kind: ctx.agent.kind, pid: process.pid, controller, beat, idle: ctx.isIdle(), now, firedFor });
|
|
120
120
|
if (!due) return;
|
|
121
|
-
|
|
122
|
-
Promise.resolve(pi.sendUserMessage(ALARM_LINE)).catch(() => {});
|
|
121
|
+
pi.sendUserMessage(ALARM_LINE);
|
|
123
122
|
firedFor = { at: beat.at, firedAt: now };
|
|
124
123
|
} catch {
|
|
125
|
-
// Cannot read or
|
|
124
|
+
// Cannot read, judge or send: not fired, so the next poll tries again.
|
|
126
125
|
}
|
|
127
126
|
};
|
|
128
127
|
ctx.setInterval(poll, POLL_MS);
|