Skip to content

Commit

Permalink
fix(core): fix ios thread joinable terminate crash
Browse files Browse the repository at this point in the history
  • Loading branch information
etkmao committed Jan 3, 2025
1 parent ee70684 commit 6746100
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/ios/base/executors/HippyJSEnginesMapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@
EngineResource::~EngineResource() {
auto runner = engine_->GetJsTaskRunner();
if (footstone::Worker::IsTaskRunning() && runner == footstone::runner::TaskRunner::GetCurrentTaskRunner()) {
__block auto dom_worder = dom_worker_;
dispatch_async(dispatch_get_main_queue(), ^{
dom_worker_->Terminate();
dom_worder->Terminate();
});
} else {
dom_worker_->Terminate();
Expand Down

0 comments on commit 6746100

Please sign in to comment.