mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
!1227 在SendObituary时保证proxy可用性
Merge pull request !1227 from dengliang/master
This commit is contained in:
commit
76f79ece53
@ -446,7 +446,12 @@ void BinderInvoker::OnBinderDied()
|
||||
ProcessSkeleton::ConvertAddr(proxy), deadInfo.handle,
|
||||
ProcessSkeleton::ConvertToSecureDesc(Str16ToStr8(deadInfo.desc)).c_str(), deadInfo.deadTime);
|
||||
} else {
|
||||
proxy->SendObituary();
|
||||
if (proxy->AttemptIncStrongRef(this)) {
|
||||
proxy->SendObituary();
|
||||
proxy->DecStrongRef(this);
|
||||
} else {
|
||||
ZLOGW(LABEL, "failed to increment strong reference count");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user