Skip to content

Commit

Permalink
Merge pull request #2 from facts-engineering/fix-tcp
Browse files Browse the repository at this point in the history
Fix TCPServer reliability
  • Loading branch information
TristanWarder authored Dec 13, 2023
2 parents b05924c + 8a6c212 commit ba18f2a
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 ba18f2a

Please sign in to comment.