diff --git a/utils/common/src/tel_event_queue.cpp b/utils/common/src/tel_event_queue.cpp index 6518b28c4..69a54a5c3 100644 --- a/utils/common/src/tel_event_queue.cpp +++ b/utils/common/src/tel_event_queue.cpp @@ -45,6 +45,7 @@ TelEventQueue::~TelEventQueue() TELEPHONY_LOGD("%{public}s need to wait", name_.c_str()); queue_->wait(curTask_); curTask_ = ffrt::task_handle(); + std::lock_guard lock(taskCtx_); queue_ = nullptr; }