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

fix: Abort backup after a max of retries #1480

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

didix21
Copy link

@didix21 didix21 commented Aug 7, 2023

Description

If the device is immediately disconnected from the WiFi while doing a backup, sometimes the process remains stuck trying to reconnect with the device. Printing every 30 s the following message: PRINT_VERBOSE(2, "Device is not ready yet, retrying...\n");

What has been done?

  • To fix this, a max of retries has been added.
  • The idevicebackup2 now returns error MOBILEBACKUP2_E_RECEIVE_TIMEOUT (-5) when the device is disconnected from the WiFi.

- If the device is immediately disconnected from the WiFi while doing a
  backup sometimes the process remains stuck trying to reconnect with
  the device. For fixing this a max of retries has been added.
- Return error MOBILEBACKUP2_E_RECEIVE_TIMEOUT (-5) when device is disconnected from the WiFi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant