Skip to content

Commit

Permalink
configurable timeout for InboundESL (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
hnimminh authored Jun 30, 2021
1 parent ec5d8e2 commit 8255846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions greenswitch/esl.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ def stop(self):


class InboundESL(ESLProtocol):
def __init__(self, host, port, password):
def __init__(self, host, port, password, timeout=5):
super(InboundESL, self).__init__()
self.host = host
self.port = port
self.password = password
self.timeout = 5
self.timeout = timeout
self.connected = False

def connect(self):
Expand Down

0 comments on commit 8255846

Please sign in to comment.