Improve device listing
Summary: Do not use mutex for device listing. Reviewed By: antonk52 Differential Revision: D50265112 fbshipit-source-id: 9b3bf4f9351e28dfb6366b6b787ec8b466b9bc47
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c80be9960a
commit
6468665116
@@ -15,7 +15,6 @@ import memoize from 'lodash.memoize';
|
||||
import {promisify} from 'util';
|
||||
import child_process from 'child_process';
|
||||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
import {recorder} from '../../recorder';
|
||||
const exec = promisify(child_process.exec);
|
||||
|
||||
@@ -178,7 +177,8 @@ async function queryTargetsWithIdb(
|
||||
Run 'idb kill' from terminal.`;
|
||||
|
||||
try {
|
||||
const {stdout} = await safeExec(cmd);
|
||||
const {stdout} = await unsafeExec(cmd);
|
||||
|
||||
if (!stdout) {
|
||||
recorder.event('cmd', {
|
||||
cmd,
|
||||
|
||||
Reference in New Issue
Block a user