Skip to content

Commit 7ff9db3

Browse files
committed
Make the adb.root connection check more reliable
1 parent f3f345a commit 7ff9db3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export const getConnectedDevices = batchCalls(async (adbClient: adb.AdbClient) =
7878
});
7979

8080
async function waitUntilAvailable(adbClient: adb.AdbClient, deviceId: string, tries: number) {
81+
delay(50);
82+
8183
while (tries > 0 && !(await getConnectedDevices(adbClient)).includes(deviceId)) {
8284
tries = tries - 1;
8385
await delay(500);

0 commit comments

Comments
 (0)