Skip to content

Commit c7a582b

Browse files
committed
remove duplicate client close calls
1 parent 5690c72 commit c7a582b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pymodbus/transaction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ def execute(self, request):
229229
except ModbusIOException as ex:
230230
# Handle decode errors in processIncomingPacket method
231231
_logger.exception(ex)
232-
self.client.close()
233232
self.client.state = ModbusTransactionState.TRANSACTION_COMPLETE
234233
self.client.close()
235234
return ex

0 commit comments

Comments
 (0)