While calling CheckAsync(), locking the mutex causes the deadlock issue.
This patch removes locking the mutex to avoid deadlock issue.
Change-Id: I8c6e26478d689f84667c2e13c2058fb4e441c4c7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
void AccessController::CheckAsync(int fd, std::string sender_appid,
CompleteCallback callback) {
- std::lock_guard<std::recursive_mutex> lock(GetMutex());
auto* tmp_handle = new std::shared_ptr<AccessController>(shared_from_this());
GMainContext* context = g_main_context_ref_thread_default();
auto job = std::make_shared<Job>([=] {