From d4aac691cee8218e5031c0fd04c8fd59085e868d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 11 Jan 2021 12:56:53 +0200 Subject: [PATCH] Increase the timeout for sending Signal messages --- hc/api/transports.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hc/api/transports.py b/hc/api/transports.py index 734c7ace..5349d06a 100644 --- a/hc/api/transports.py +++ b/hc/api/transports.py @@ -680,7 +680,9 @@ class Signal(Transport): args.extend(["send", self.channel.phone_number]) args.extend(["-m", text]) - result = subprocess.run(args, timeout=10) + # Need a high timeout because sending the first message to a new + # recipient sometimes takes 20+ seconds + result = subprocess.run(args, timeout=30) if result.returncode != 0: return "signal-cli returned exit code %d" % result.returncode