From e366c8d32fc1c6a1d1d2c7da31310d517c0d608a Mon Sep 17 00:00:00 2001 From: etkmao Date: Fri, 22 Sep 2023 21:57:27 +0800 Subject: [PATCH] fix(core): crash protect for worker on ios --- modules/footstone/src/task_runner.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/footstone/src/task_runner.cc b/modules/footstone/src/task_runner.cc index 1b400caf319..b8a60590a26 100644 --- a/modules/footstone/src/task_runner.cc +++ b/modules/footstone/src/task_runner.cc @@ -201,7 +201,9 @@ TimeDelta TaskRunner::GetNextTimeDelta(TimePoint now) { void TaskRunner::NotifyWorker() { auto worker = worker_.lock(); - FOOTSTONE_CHECK(worker); + if (!worker) { + return; + } worker->Notify(); }