Unverified Commit de35aef6 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Check for a closed output stream in the devicelab ADB log reader (#76633)

parent d75cfa58
...@@ -581,7 +581,9 @@ class AndroidDevice extends Device { ...@@ -581,7 +581,9 @@ class AndroidDevice extends Device {
.transform<String>(const LineSplitter()) .transform<String>(const LineSplitter())
.listen((String line) { .listen((String line) {
print('adb logcat: $line'); print('adb logcat: $line');
stream.sink.add(line); if (!stream.isClosed) {
stream.sink.add(line);
}
}, onDone: () { stdoutDone.complete(); }); }, onDone: () { stdoutDone.complete(); });
process.stderr process.stderr
.transform<String>(utf8.decoder) .transform<String>(utf8.decoder)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment