From 4203ce3d2b8fcc37cd2a0fef92eca06512b10019 Mon Sep 17 00:00:00 2001 From: Maksim Alzhanov Date: Tue, 12 Nov 2024 18:19:33 +0300 Subject: [PATCH] Remove blocking IO --- pymobiledevice3/tcp_forwarder.py | 2 -- 1 file changed, 2 deletions(-) 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")