Perform exit from server, not starter as awaiting from starter causes hanging in incremental compilation scenario. (flutter/engine#4955)
This commit is contained in:
committed by
GitHub
parent
22cda88320
commit
00424d36f7
@@ -1,10 +1,7 @@
|
||||
library frontend_server;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:frontend_server/server.dart';
|
||||
|
||||
Future<Null> main(List<String> args) async {
|
||||
exit(await starter(args));
|
||||
void main(List<String> args){
|
||||
starter(args);
|
||||
}
|
||||
|
||||
@@ -104,9 +104,9 @@ Future<int> starter(
|
||||
compiler ??= new _FlutterFrontendCompiler(output, trackWidgetCreation: options['track-widget-creation']);
|
||||
|
||||
if (options.rest.isNotEmpty) {
|
||||
return await compiler.compile(options.rest[0], options)
|
||||
exit(await compiler.compile(options.rest[0], options)
|
||||
? 0
|
||||
: 254;
|
||||
: 254);
|
||||
}
|
||||
|
||||
frontend.listenAndCompile(compiler, input ?? stdin, options, () { exit(0); } );
|
||||
|
||||
Reference in New Issue
Block a user