From 2c61067387dbf3083d69e3577234dc6e7c60b6c2 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Fri, 28 Sep 2018 09:01:39 -0700 Subject: [PATCH] fix race in devicelab concurrent hot reload (#22403) --- dev/devicelab/bin/tasks/run_machine_concurrent_hot_reload.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev/devicelab/bin/tasks/run_machine_concurrent_hot_reload.dart b/dev/devicelab/bin/tasks/run_machine_concurrent_hot_reload.dart index 281048b8c2..44f12adb9f 100644 --- a/dev/devicelab/bin/tasks/run_machine_concurrent_hot_reload.dart +++ b/dev/devicelab/bin/tasks/run_machine_concurrent_hot_reload.dart @@ -64,6 +64,8 @@ void main() { print('service protocol connection available at port $vmServicePort'); } else if (json != null && json['event'] == 'app.started') { appId = json['params']['appId']; + } + if (vmServicePort != null && appId != null) { print('run: ready!'); ready.complete(); ok ??= true;