Skip to content

Commit

Permalink
Remove blocking IO
Browse files Browse the repository at this point in the history
  • Loading branch information
irdkwmnsb committed Nov 12, 2024
1 parent 096dcb0 commit 4203ce3
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 4203ce3

Please sign in to comment.