Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore: fix restoring ios18 on python versions<3.11 #1178

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pymobiledevice3/restore/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,9 @@ async def send_source_boot_object_v4(self, message: Mapping) -> None:
if i == 0 and chunk.startswith(b'AEA1'):
self.logger.debug('First chunk in a AEA')
try:
async with asyncio.timeout(3):
message = await service.aio_recv_plist()
await self.send_url_asset(message)
except asyncio.TimeoutError:
message = await asyncio.wait_for(service.aio_recv_plist(), timeout=3)
await self.send_url_asset(message)
except asyncio.exceptions.TimeoutError:
self.logger.debug('No URLAsset was requested. Assuming it is not necessary')

# Send FileDataDone
Expand Down
Loading