mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[devicelab] allow the tool to use the word waiting more than once (#56397)
This commit is contained in:
parent
9b7b9d795e
commit
f7ed942a70
@ -31,7 +31,7 @@ Future<void> testReload(Process process, { Future<void> 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();
|
||||
|
Loading…
Reference in New Issue
Block a user