Vereenvoudiging reconnect mechanisme
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -147,19 +147,16 @@ connects to lmw with tcp using the values of the object creation.
|
|||||||
After this time a logout is sent and a new connection is created.
|
After this time a logout is sent and a new connection is created.
|
||||||
|
|
||||||
This prevents the 10 minute server timeout"""
|
This prevents the 10 minute server timeout"""
|
||||||
if self.reconnecttime > 0:
|
if ct > self.reconnecttime:
|
||||||
ct = time.time() - self._connecttime
|
self.log.debug("LmwSip.reconnectcheck: reconnect after %i seconds" % ct)
|
||||||
if ct > self.reconnecttime:
|
#
|
||||||
self.log.debug("LmwSip.reconnectcheck: reconnect after %i seconds" % ct)
|
# Reset connect time to prevent reconnects
|
||||||
#
|
#
|
||||||
# Disable check for the reconnect
|
self._connecttime = time.time()
|
||||||
#
|
self.logout()
|
||||||
self.reconnecttime = - self.reconnecttime
|
time.sleep(1)
|
||||||
self.logout()
|
self.connect()
|
||||||
time.sleep(1)
|
self.login()
|
||||||
self.connect()
|
|
||||||
self.login()
|
|
||||||
self.reconnecttime = - self.reconnecttime
|
|
||||||
|
|
||||||
def send(self, sipcmd):
|
def send(self, sipcmd):
|
||||||
"""send(sipcmd)
|
"""send(sipcmd)
|
||||||
|
2
setup.py
2
setup.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="lmwsip", # Replace with your own username
|
name="lmwsip", # Replace with your own username
|
||||||
version="0.0.7",
|
version="0.0.8",
|
||||||
author="Marcel Nijenhof",
|
author="Marcel Nijenhof",
|
||||||
author_email="pip@pion.xs4all.nl",
|
author_email="pip@pion.xs4all.nl",
|
||||||
description="Interface for the lmw sip protocol",
|
description="Interface for the lmw sip protocol",
|
||||||
|
Reference in New Issue
Block a user