Commit a92a6270 authored by Devon Carew's avatar Devon Carew Committed by GitHub

ignore PausePostRequest when reloading (#11340)

* ignore postpauseevents when reloading

* Update run_hot.dart

comment changes to kick the appveyor bot
parent dd40d0e2
......@@ -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);
......
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