未验证 提交 f64f64ee 编写于 作者: C Chinmay Garde 提交者: GitHub

Tear down the shell before terminating message loops on host threads. (#5207)

Shell teardown is synchronous. The shell was attempting to destroy components on a quitting message loop. The message loop implementation was executing such tasks on the calling thread which the shell does not consider thread safe.
上级 11d6da3c
......@@ -215,6 +215,7 @@ Engine::Engine(Delegate& delegate,
}
Engine::~Engine() {
shell_.reset();
for (const auto& thread : host_threads_) {
thread.TaskRunner()->PostTask(
[]() { fsl::MessageLoop::GetCurrent()->PostQuitTask(); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册