Skip to content

Commit 423db94

Browse files
committed
Don't worry about ADB SIGKILL startup errors
1 parent b846a77 commit 423db94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const getConnectedDevices = batchCalls(async (adbClient: adb.AdbClient) =
6161
e.code === 'ENOENT' || // No ADB available
6262
e.code === 'EACCES' || // ADB available, but we aren't allowed to run it
6363
e.code === 'ECONNREFUSED' || // Tried to start ADB, but still couldn't connect
64+
e.signal === 'SIGKILL' || // In some envs 'adb start-server' is always killed (why?)
6465
(e.cmd && e.code) // ADB available, but "adb start-server" failed
6566
) {
6667
if (e.code !== 'ENOENT') {

0 commit comments

Comments
 (0)