am 2aa1d18e: Fix bug 17931760 - spurious timeout leads to mayhem

* commit '2aa1d18e3acd269ed7a5f5a4843d447735f0676c':
  Fix bug 17931760 - spurious timeout leads to mayhem
This commit is contained in:
Christopher Tate
2014-10-09 23:06:27 +00:00
committed by Android Git Automerger

View File

@@ -2415,6 +2415,11 @@ public class BackupManagerService extends IBackupManager.Stub {
mStatus = invokeAgentForBackup(PACKAGE_MANAGER_SENTINEL,
IBackupAgent.Stub.asInterface(pmAgent.onBind()), mTransport);
addBackupTrace("PMBA invoke: " + mStatus);
// Because the PMBA is a local instance, it has already executed its
// backup callback and returned. Blow away the lingering (spurious)
// pending timeout message for it.
mBackupHandler.removeMessages(MSG_TIMEOUT);
}
if (mStatus == BackupTransport.TRANSPORT_NOT_INITIALIZED) {