Skip to content

Commit

Permalink
shutdown socket before closing
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Ruiz de Sotto <miguel.ruiz-de-sotto@ledger.fr>
  • Loading branch information
mruiz-ledger committed Apr 30, 2024
1 parent 7567198 commit 9e7a94a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ledgerblue/commTCP.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def apduMaxDataSize(self):

def close(self):
try:
self.socket.shutdown(socket.SHUT_RD)
self.socket.close()
self.socket = None
except:
Expand Down

0 comments on commit 9e7a94a

Please sign in to comment.