加SendObituary时保证proxy可用性

Signed-off-by: wanderer-dl122 <dengliang26@huawei.com>
This commit is contained in:
wanderer-dl122 2024-07-20 19:50:46 +08:00
parent aae94d4046
commit 00d977eca2

View File

@ -449,6 +449,8 @@ void BinderInvoker::OnBinderDied()
if (proxy->AttemptIncStrongRef(this)) {
proxy->SendObituary();
proxy->DecStrongRef(this);
} else {
ZLOGW(LABEL, "failed to increase strong reference count");
}
}
}