The RestoreSession is no longer responsible for calling finishRestore();
that happens as part of tidying up after running the restore itself,
even in failure cases.
Bug
22640096
Change-Id: I0be52af2ae8c2c1ac685e9904ccb8120f7fcf522
public void run() {
// clean up the session's bookkeeping
synchronized (mSession) {
- try {
- if (mSession.mRestoreTransport != null) {
- mSession.mRestoreTransport.finishRestore();
- }
- } catch (Exception e) {
- Slog.e(TAG, "Error in finishRestore", e);
- } finally {
- mSession.mRestoreTransport = null;
- mSession.mEnded = true;
- }
+ mSession.mRestoreTransport = null;
+ mSession.mEnded = true;
}
// clean up the BackupManagerImpl side of the bookkeeping