aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lightning.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lightning.ts')
-rw-r--r--lib/lightning.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lightning.ts b/lib/lightning.ts
index 9e259ed5..2f5f4f00 100644
--- a/lib/lightning.ts
+++ b/lib/lightning.ts
@@ -127,6 +127,9 @@ export async function listenForLightning() {
}
}
+// Watchdog (run periodically): restart a dead listener, or recycle a zombie one
+// that's been blocked in waitanyinvoice far past any normal quiet period while cl
+// is actually alive (the dead-listen-socket case).
export async function ensureListenerAlive() {
if (!listenerActive) {
warn("lightning listener: not active, restarting");