[core] Prevent bootloop when rirud is dead (#286)

closes #285
This commit is contained in:
LoveSy 2021-03-08 01:07:42 +08:00 committed by GitHub
parent b5c1a0778f
commit 7d1652af05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ namespace lspd {
}
jobject Service::RequestBinderForSystemServer(JNIEnv *env) {
if (UNLIKELY(!initialized_)) {
if (UNLIKELY(!initialized_ || !bridge_service_class_)) {
LOGE("Service not initialized");
return nullptr;
}