提交 cc3801a4 编写于 作者: C Chinmay Garde

Leak the embedder message loop on Mac. (#2585)

Dart has the tendency to call `exit()` on arbitrary threads. This causes
the assertion to trip. Since this should only happen when Dart is
running the shell in non-interactive mode, we leak the message loop
without proper shutdown.

We should never hit this path on iOS.
上级 a299d69f
......@@ -89,10 +89,7 @@ class EmbedderState {
}
~EmbedderState() {
CHECK([NSThread isMainThread])
<< "Embedder destruction must occur on the main platform thread";
#if !TARGET_OS_IPHONE
embedder_message_loop_->QuitNow();
embedder_message_loop_.release();
#endif
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册