Merge "Don't redundantly call transport.finishRestore()" into mnc-dev
This commit is contained in:
@@ -9535,16 +9535,8 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF
|
|||||||
public void run() {
|
public void run() {
|
||||||
// clean up the session's bookkeeping
|
// clean up the session's bookkeeping
|
||||||
synchronized (mSession) {
|
synchronized (mSession) {
|
||||||
try {
|
mSession.mRestoreTransport = null;
|
||||||
if (mSession.mRestoreTransport != null) {
|
mSession.mEnded = true;
|
||||||
mSession.mRestoreTransport.finishRestore();
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
Slog.e(TAG, "Error in finishRestore", e);
|
|
||||||
} finally {
|
|
||||||
mSession.mRestoreTransport = null;
|
|
||||||
mSession.mEnded = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// clean up the BackupManagerImpl side of the bookkeeping
|
// clean up the BackupManagerImpl side of the bookkeeping
|
||||||
|
|||||||
Reference in New Issue
Block a user