ignore PausePostRequest when reloading (#11340)

* ignore postpauseevents when reloading

* Update run_hot.dart

comment changes to kick the appveyor bot
This commit is contained in:
Devon Carew
2017-07-21 16:57:33 -07:00
committed by GitHub
parent dd40d0e29c
commit a92a62706c

View File

@@ -524,9 +524,10 @@ class HotRunner extends ResidentRunner {
final List<FlutterView> reassembleViews = <FlutterView>[];
for (FlutterDevice device in flutterDevices) {
for (FlutterView view in device.views) {
// Check if the isolate is paused, and if so, don't reassemble. Ignore the
// PostPauseEvent event - the client requesting the pause will resume the app.
final ServiceEvent pauseEvent = view.uiIsolate.pauseEvent;
if ((pauseEvent != null) && (pauseEvent.isPauseEvent)) {
// Isolate is paused. Don't reassemble.
if (pauseEvent != null && pauseEvent.isPauseEvent && pauseEvent.kind != ServiceEvent.kPausePostRequest) {
continue;
}
reassembleViews.add(view);