BUG Fix: reconnect time > 0 toegevoegd
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Marcel Nijenhof
2020-10-16 08:50:38 +02:00
parent eccd9011a3
commit bf1996931e

View File

@@ -148,7 +148,7 @@ After this time a logout is sent and a new connection is created.
This prevents the 10 minute server timeout"""
ct = time.time() - self._connecttime
if ct > self.reconnecttime:
if (self.reconnecttime > 0) and (ct > self.reconnecttime):
self.log.debug("LmwSip.reconnectcheck: reconnect after %i seconds" % ct)
#
# Reset connect time to prevent reconnects