Query devices should be async
Summary: ^ Reviewed By: aigoncharov Differential Revision: D48781102 fbshipit-source-id: c987be90c7bca7dbab40a89b389ee86ef2230393
This commit is contained in:
committed by
Facebook GitHub Bot
parent
50d31cb1f7
commit
03c0874f30
@@ -97,10 +97,9 @@ export class IOSDeviceManager {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
queryDevices(bridge: IOSBridge): Promise<any> {
|
async queryDevices(bridge: IOSBridge): Promise<any> {
|
||||||
return bridge
|
const devices = await bridge.getActiveDevices(true);
|
||||||
.getActiveDevices(true)
|
return this.processDevices(bridge, devices);
|
||||||
.then((devices) => this.processDevices(bridge, devices));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private processDevices(bridge: IOSBridge, activeDevices: IOSDeviceParams[]) {
|
private processDevices(bridge: IOSBridge, activeDevices: IOSDeviceParams[]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user