From 6777fb123436859c4462bc77a45ce8986d440be3 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Fri, 24 Jun 2016 14:55:30 +0300 Subject: [PATCH] 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. --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index bdd7023bf2..a73d511604 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit bdd7023bf2727ae5e235408d505d6cf0233dbb93 +Subproject commit a73d51160478aba9f336564801a2e4d40ef486be