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 d4f1cd9 commit 7489592Copy full SHA for 7489592
pymodbus/client/base.py
@@ -208,14 +208,8 @@ def connection_lost(self, reason):
208
209
The argument is either an exception object or None
210
"""
211
- if self.transport:
212
- self.transport.abort()
213
- if hasattr(self.transport, "_sock"):
214
- self.transport._sock.close() # pylint: disable=protected-access
215
- self.transport = None
216
- self.close(reconnect=True)
217
-
218
Log.debug("Client disconnected from modbus server: {}", reason)
+ self.close(reconnect=True)
219
for tid in list(self.transaction):
220
self.raise_future(
221
self.transaction.getTransaction(tid),
0 commit comments