Bug fix: hang/loop in sendrecv
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -12,7 +12,7 @@ from datetime import datetime, timedelta
|
|||||||
from dateutil import tz
|
from dateutil import tz
|
||||||
|
|
||||||
""" Version info changed by git hook """
|
""" Version info changed by git hook """
|
||||||
__version__ = '0.1.01'
|
__version__ = '0.1.02'
|
||||||
|
|
||||||
class LmwSip:
|
class LmwSip:
|
||||||
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
||||||
@@ -743,6 +743,11 @@ retry on socket failure.
|
|||||||
ret = ""
|
ret = ""
|
||||||
self.reconnectcheck()
|
self.reconnectcheck()
|
||||||
while (ret == "") and (c < 3):
|
while (ret == "") and (c < 3):
|
||||||
|
if (self._socket == None):
|
||||||
|
time.sleep(10)
|
||||||
|
self.log.warning("LmwSip.sendrecv: reconnect")
|
||||||
|
self.connect()
|
||||||
|
self.login()
|
||||||
try:
|
try:
|
||||||
self.send(cmd)
|
self.send(cmd)
|
||||||
ret = self.recv()
|
ret = self.recv()
|
||||||
|
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.1.01",
|
version="0.1.02",
|
||||||
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