mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix race with engine destruction in Shell (flutter/engine#26369)
This commit is contained in:
parent
066073b997
commit
d7774b2f1b
@ -427,8 +427,8 @@ Shell::~Shell() {
|
||||
|
||||
fml::TaskRunner::RunNowOrPostTask(
|
||||
task_runners_.GetUITaskRunner(),
|
||||
fml::MakeCopyable([engine = std::move(engine_), &ui_latch]() mutable {
|
||||
engine.reset();
|
||||
fml::MakeCopyable([this, &ui_latch]() mutable {
|
||||
engine_.reset();
|
||||
ui_latch.Signal();
|
||||
}));
|
||||
ui_latch.Wait();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user