break early

This commit is contained in:
fuwa
2019-06-25 20:51:09 +08:00
parent 33f8ba5cf6
commit 99dc55cb7e
+1 -2
View File
@@ -208,10 +208,9 @@ class ReSyncingState extends HookedState {
Future<void> printStdout() async {
await for (var line in processOutput) {
if (synced) break;
append(line);
print(line);
if (synced) break;
}
}