Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 889de0b4 authored by Christopher Tate's avatar Christopher Tate Committed by Android Git Automerger
Browse files

am f75301f7: am 93fb1553: am 94d96338: Merge "Don\'t crash just because...

am f75301f7: am 93fb1553: am 94d96338: Merge "Don\'t crash just because invalid datasets were offered for restore" into lmp-mr1-dev

* commit 'f75301f7':
  Don't crash just because invalid datasets were offered for restore
parents 31f6aaf4 f75301f7
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ import android.util.Log;

import com.android.org.bouncycastle.util.encoders.Base64;

import libcore.io.IoUtils;

import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
@@ -559,11 +561,7 @@ public class LocalTransport extends BackupTransport {
    // Full restore handling

    private void resetFullRestoreState() {
        try {
        mCurFullRestoreStream.close();
        } catch (IOException e) {
            Log.w(TAG, "Unable to close full restore input stream");
        }
        IoUtils.closeQuietly(mCurFullRestoreStream);
        mCurFullRestoreStream = null;
        mFullRestoreSocketStream = null;
        mFullRestoreBuffer = null;