Browse Source

Increase the timeout for sending Signal messages

pull/468/head
Pēteris Caune 4 years ago
parent
commit
d4aac691ce
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      hc/api/transports.py

+ 3
- 1
hc/api/transports.py 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

Loading…
Cancel
Save