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

Commit b667621f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Clear BCB if space allocation failed"

parents 04eeb94b c2567982
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -674,10 +674,12 @@ public class RecoverySystem {
            }
            try {
                if (!rs.allocateSpaceForUpdate(packageFile)) {
                    rs.clearBcb();
                    throw new IOException("Failed to allocate space for update "
                            + packageFile.getAbsolutePath());
                }
            } catch (RemoteException e) {
                rs.clearBcb();
                e.rethrowAsRuntimeException();
            }