Skip to content

Commit

Permalink
tunneld: handle LockdownError
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Nov 25, 2024
1 parent 48a3ff6 commit 345ddda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymobiledevice3/tunneld.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from pymobiledevice3 import usbmux
from pymobiledevice3.bonjour import REMOTED_SERVICE_NAMES, browse
from pymobiledevice3.exceptions import ConnectionFailedError, ConnectionFailedToUsbmuxdError, DeviceNotFoundError, \
GetProhibitedError, InvalidServiceError, MuxException, PairingError, TunneldConnectionError
GetProhibitedError, InvalidServiceError, LockdownError, MuxException, PairingError, TunneldConnectionError
from pymobiledevice3.lockdown import create_using_usbmux, get_mobdev2_lockdowns
from pymobiledevice3.osu.os_utils import get_os_utils
from pymobiledevice3.remote.common import TunnelProtocol
Expand Down Expand Up @@ -141,7 +141,7 @@ async def monitor_usbmux_task(self) -> None:
try:
service = CoreDeviceTunnelProxy(create_using_usbmux(mux_device.serial))
except (MuxException, InvalidServiceError, GetProhibitedError, construct.core.StreamError,
ConnectionAbortedError, DeviceNotFoundError):
ConnectionAbortedError, DeviceNotFoundError, LockdownError):
continue
self.tunnel_tasks[task_identifier] = TunnelTask(
udid=mux_device.serial,
Expand Down

0 comments on commit 345ddda

Please sign in to comment.