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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user