Increase the timeout for sending Signal messages

This commit is contained in:
Pēteris Caune 2021-01-11 12:56:53 +02:00
parent ee37d305ef
commit d4aac691ce
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2

View File

@ -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