diff --git a/pymobiledevice3/tcp_forwarder.py b/pymobiledevice3/tcp_forwarder.py index 26afcce47..78eb67238 100644 --- a/pymobiledevice3/tcp_forwarder.py +++ b/pymobiledevice3/tcp_forwarder.py @@ -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")