Skip to content

Commit

Permalink
tcp_forwarder: make sendall() blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
irdkwmnsb authored Nov 18, 2024
1 parent 4df41c3 commit 11cc5e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pymobiledevice3/tcp_forwarder.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ def _handle_data(self, from_sock, closed_sockets):
other_sock = self.connections[from_sock]
try:
# send the data in blocking manner
other_sock.setblocking(True)
other_sock.sendall(data)
other_sock.setblocking(False)
except OSError:
# Tried writing to closed socket
self.logger.exception("Exception when sending data to socket")
Expand Down

0 comments on commit 11cc5e1

Please sign in to comment.