Skip to content

Commit

Permalink
fix(core): crash protect for worker on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
etkmao authored and hippy-actions[bot] committed Sep 22, 2023
1 parent f6a3f7d commit 5ead86c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/footstone/src/task_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ TimeDelta TaskRunner::GetNextTimeDelta(TimePoint now) {

void TaskRunner::NotifyWorker() {
auto worker = worker_.lock();
FOOTSTONE_CHECK(worker);
if (!worker) {
return;
}
worker->Notify();
}

Expand Down

0 comments on commit 5ead86c

Please sign in to comment.