Skip to content

Commit b5ba6a7

Browse files
Fix AFC Connection errors when --device is specified
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.
1 parent c426512 commit b5ba6a7

File tree

1 file changed

+1
-1
lines changed

0 commit comments

Comments
 (0)