Merge "Explicitly flush compress/encrypt stream before close" into nyc-mr1-dev
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user