Skip to content

Fix AFC Connection errors when --device is specified #1876

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

Merged
merged 1 commit into from
Jun 24, 2016

Conversation

rosen-vladimirov
Copy link
Contributor

When --device is specified, CLI is trying to find all currently attached devices and check if the passed option is valid. This leads to starting of a setInterval, that is trying to detect when new device is attached.
The setInterval is executed on 2 seconds and it starts iOS related services and adb related services. It looks like this breaks the execution of AFC service.

Fix this by using a method that do not start the setInterval, but detects all currently detected devices.
This fix errors like:
Error: Unable to close afc file connection: '4361027664'. Result is: '3'
and
Error: Unable to write to file: '4361027664'. Result is: '11'
when --device is used.

@TsvetanMilanov
Copy link
Contributor

👍

When `--device` is specified, CLI is trying to find all currently attached devices and check if the passed option is valid. This leads to starting of a setInterval, that is trying to detect when new device is attached.
The setInterval is executed on 2 seconds and it starts iOS related services and adb related services. It looks like this breaks the execution of AFC service.

Fix this by using a method that do not start the setInterval, but detects all currently detected devices.
This fix errors like:
`Error: Unable to close afc file connection: '4361027664'. Result is: '3'`
and
`Error: Unable to write to file: '4361027664'. Result is: '11'`
when `--device` is used.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-afc-errors branch from b5ba6a7 to 6777fb1 Compare June 24, 2016 12:01
@rosen-vladimirov rosen-vladimirov merged commit 5776d8e into master Jun 24, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-afc-errors branch June 24, 2016 12:30
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.

2 participants