Skip to content

Commit 2fc8055

Browse files
jason-simmonsNoamDev
authored andcommitted
Do not reset the child isolate preparer if the isolate group data already has one (flutter-team-archive#15952)
See flutter/flutter#49358
1 parent 4ac8612 commit 2fc8055

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

runtime/dart_isolate.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,11 @@ bool DartIsolate::PrepareForRunningFromPrecompiledCode() {
294294
return false;
295295
}
296296

297-
GetIsolateGroupData().SetChildIsolatePreparer([](DartIsolate* isolate) {
298-
return isolate->PrepareForRunningFromPrecompiledCode();
299-
});
297+
if (GetIsolateGroupData().GetChildIsolatePreparer() == nullptr) {
298+
GetIsolateGroupData().SetChildIsolatePreparer([](DartIsolate* isolate) {
299+
return isolate->PrepareForRunningFromPrecompiledCode();
300+
});
301+
}
300302

301303
const fml::closure& isolate_create_callback =
302304
GetIsolateGroupData().GetIsolateCreateCallback();

0 commit comments

Comments
 (0)