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

Commit 69818781 authored by Chris Tate's avatar Chris Tate Committed by Android (Google) Code Review
Browse files

Merge "Explicitly flush compress/encrypt stream before close" into nyc-mr1-dev

parents 4885b274 59397a8e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4328,7 +4328,10 @@ public class BackupManagerService {
                Slog.e(TAG, "Internal exception during full backup", e);
            } finally {
                try {
                    if (out != null) out.close();
                    if (out != null) {
                        out.flush();
                        out.close();
                    }
                    mOutputFile.close();
                } catch (IOException e) {
                    /* nothing we can do about this */