From 21e3e874194fee13a08b3fa14dcea698b38e7feb Mon Sep 17 00:00:00 2001 From: Janus Date: Tue, 6 Feb 2018 17:23:00 +0100 Subject: [PATCH] lightning: timeout cli lightning calls in 10 sec --- lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index 13892701..5bea1ff6 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -703,7 +703,7 @@ class Commands: newResult = FakeQtSignal() self.wallet.lightning.setConsole(MyConsole()) lightning.lightningCall(self.wallet.lightning, lcmd)(*args) - return q.get() + return q.get(block=True, timeout=10) param_descriptions = { 'privkey': 'Private key. Type \'?\' to get a prompt.',