From f7ed942a7089040f1758248e35e46408d5e74b3f Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Tue, 5 May 2020 13:13:21 -0700 Subject: [PATCH] [devicelab] allow the tool to use the word waiting more than once (#56397) --- dev/devicelab/bin/tasks/flutter_attach_test_android.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/devicelab/bin/tasks/flutter_attach_test_android.dart b/dev/devicelab/bin/tasks/flutter_attach_test_android.dart index c05d37b25b2..a2a43e827e8 100644 --- a/dev/devicelab/bin/tasks/flutter_attach_test_android.dart +++ b/dev/devicelab/bin/tasks/flutter_attach_test_android.dart @@ -31,7 +31,7 @@ Future testReload(Process process, { Future Function() onListening } .listen((String line) { print('attach:stdout: $line'); stdout.add(line); - if (line.contains('Waiting') && onListening != null) + if (line.contains('Waiting') && onListening != null && !listening.isCompleted) listening.complete(onListening()); if (line.contains('Quit (terminate the application on the device)')) ready.complete();