We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c28a6 commit d4f1cd9Copy full SHA for d4f1cd9
pymodbus/client/base.py
@@ -213,12 +213,7 @@ def connection_lost(self, reason):
213
if hasattr(self.transport, "_sock"):
214
self.transport._sock.close() # pylint: disable=protected-access
215
self.transport = None
216
- x = self.delay_ms
217
- self.close()
218
- self.delay_ms = x
219
-
220
- Log.info("Protocol lost connection.")
221
- self._launch_reconnect()
+ self.close(reconnect=True)
222
223
Log.debug("Client disconnected from modbus server: {}", reason)
224
for tid in list(self.transaction):
0 commit comments