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
|
||||
|
||||
""" Version info changed by git hook """
|
||||
__version__ = '0.1.01'
|
||||
__version__ = '0.1.02'
|
||||
|
||||
class LmwSip:
|
||||
"""Class to connect to the LMW Standard Interface prototcol (sip)
|
||||
@@ -743,6 +743,11 @@ retry on socket failure.
|
||||
ret = ""
|
||||
self.reconnectcheck()
|
||||
while (ret == "") and (c < 3):
|
||||
if (self._socket == None):
|
||||
time.sleep(10)
|
||||
self.log.warning("LmwSip.sendrecv: reconnect")
|
||||
self.connect()
|
||||
self.login()
|
||||
try:
|
||||
self.send(cmd)
|
||||
ret = self.recv()
|
||||
|
Reference in New Issue
Block a user