File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
packages/flutter_tools/lib Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,14 @@ Future<Null> main(List<String> args) async {
8282
8383 return Chain .capture/*<Future<Null>>*/ (() async {
8484 // Initialize globals.
85- context[Logger ] = new StdoutLogger ();
86- context[DeviceManager ] = new DeviceManager ();
87- context[DevFSConfig ] = new DevFSConfig ();
88- Doctor .initGlobal ();
85+ if (context[Logger ] == null )
86+ context[Logger ] = new StdoutLogger ();
87+ if (context[DeviceManager ] == null )
88+ context[DeviceManager ] = new DeviceManager ();
89+ if (context[DevFSConfig ] == null )
90+ context[DevFSConfig ] = new DevFSConfig ();
91+ if (context[Doctor ] == null )
92+ context[Doctor ] = new Doctor ();
8993
9094 dynamic result = await runner.run (args);
9195 _exit (result is int ? result : 1 );
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import 'package:path/path.dart' as path;
99
1010import 'android/android_workflow.dart' ;
1111import 'base/common.dart' ;
12- import 'base/context.dart' ;
1312import 'device.dart' ;
1413import 'globals.dart' ;
1514import 'ios/ios_workflow.dart' ;
@@ -48,10 +47,6 @@ class Doctor {
4847 _validators.add (new DeviceValidator ());
4948 }
5049
51- static void initGlobal () {
52- context[Doctor ] = new Doctor ();
53- }
54-
5550 IOSWorkflow _iosWorkflow;
5651 AndroidWorkflow _androidWorkflow;
5752
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ class HotRunner extends ResidentRunner {
517517 if ((pauseEvent != null ) && (pauseEvent.isPauseEvent)) {
518518 // Isolate is paused. Stop here.
519519 printTrace ('Skipping reassemble because isolate is paused.' );
520- return OperationResult .ok;
520+ return new OperationResult ( OperationResult .ok.code, reloadMessage) ;
521521 }
522522 await _evictDirtyAssets ();
523523 printTrace ('Reassembling application' );
You can’t perform that action at this time.
0 commit comments