Populate the initial list of connected devices on startup
Summary: When we start using Flipper from the CLI for automation, we want to have the list of currently connected devices as soon as flipper server is alive. Otherwise, we would have to poll flipper server waiting for some magical moment in the future when devices connect. This way, we can be certain that if flipper server started, but we do not see a device, it is not connected at all. Reviewed By: mweststrate Differential Revision: D40184106 fbshipit-source-id: ce4c2b897a2df0081e3a0b6a8c26640599e0f9e8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fbbd90e9f5
commit
b5a750935d
@@ -149,7 +149,7 @@ export class IOSDeviceManager {
|
||||
isDetected,
|
||||
this.idbConfig.enablePhysicalIOS,
|
||||
);
|
||||
this.queryDevicesForever(bridge);
|
||||
await this.queryDevicesForever(bridge);
|
||||
} catch (err) {
|
||||
// This case is expected if both Xcode and idb are missing.
|
||||
if (err.message === ERR_NO_IDB_OR_XCODE_AVAILABLE) {
|
||||
|
||||
Reference in New Issue
Block a user