forked from firka/flutter
Miscellaneous cleanups (#6813)
- [x] Return the reload message even when paused at a breakpoint. - [x] Only initialize context members if they aren't already initialized.
This commit is contained in:
@@ -9,7 +9,6 @@ import 'package:path/path.dart' as path;
|
||||
|
||||
import 'android/android_workflow.dart';
|
||||
import 'base/common.dart';
|
||||
import 'base/context.dart';
|
||||
import 'device.dart';
|
||||
import 'globals.dart';
|
||||
import 'ios/ios_workflow.dart';
|
||||
@@ -48,10 +47,6 @@ class Doctor {
|
||||
_validators.add(new DeviceValidator());
|
||||
}
|
||||
|
||||
static void initGlobal() {
|
||||
context[Doctor] = new Doctor();
|
||||
}
|
||||
|
||||
IOSWorkflow _iosWorkflow;
|
||||
AndroidWorkflow _androidWorkflow;
|
||||
|
||||
|
||||
@@ -517,7 +517,7 @@ class HotRunner extends ResidentRunner {
|
||||
if ((pauseEvent != null) && (pauseEvent.isPauseEvent)) {
|
||||
// Isolate is paused. Stop here.
|
||||
printTrace('Skipping reassemble because isolate is paused.');
|
||||
return OperationResult.ok;
|
||||
return new OperationResult(OperationResult.ok.code, reloadMessage);
|
||||
}
|
||||
await _evictDirtyAssets();
|
||||
printTrace('Reassembling application');
|
||||
|
||||
Reference in New Issue
Block a user