Commit 9a9a3ffd authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Fix `flutter logs` on Windows (#8442)

parent 6491cbf7
......@@ -6,6 +6,7 @@ import 'dart:async';
import '../base/common.dart';
import '../base/io.dart';
import '../base/platform.dart';
import '../cache.dart';
import '../device.dart';
import '../globals.dart';
......@@ -66,10 +67,12 @@ class LogsCommand extends FlutterCommand {
printStatus('');
exitCompleter.complete(0);
});
if (!platform.isWindows) { // https://github.com/dart-lang/sdk/issues/28603
ProcessSignal.SIGTERM.watch().listen((ProcessSignal signal) {
subscription.cancel();
exitCompleter.complete(0);
});
}
// Wait for the log reader to be finished.
int result = await exitCompleter.future;
......
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