Skip to content

Commit

Permalink
Fix TCPServer reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanWarder committed Dec 7, 2023
1 parent b05924c commit 8a6c212
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions uModbus/tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ def _accept_request(self, accept_timeout):
return None
try:
r = self.handle_request(req_uid_and_pdu)
self._client_sock.close()
self._client_sock = None
return r
except ModbusException as e:
# print("Modbus request error:", e)
Expand Down

0 comments on commit 8a6c212

Please sign in to comment.