Merge "Don't crash the system if there is broken precondition."
This commit is contained in:
committed by
Android (Google) Code Review
commit
91f9f9d7a0
@@ -3711,7 +3711,9 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
|
||||
private boolean dispatchPendingAbandonCallback() {
|
||||
final Runnable callback;
|
||||
synchronized (mLock) {
|
||||
Preconditions.checkState(mStageDirInUse);
|
||||
if (!mStageDirInUse) {
|
||||
return false;
|
||||
}
|
||||
mStageDirInUse = false;
|
||||
callback = mPendingAbandonCallback;
|
||||
mPendingAbandonCallback = null;
|
||||
|
||||
Reference in New Issue
Block a user