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

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

Merge "Clean up properly if outcall for doRestoreFinished() fails" into mnc-dev

parents 7aa6fc67 d71d7c35
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -7848,8 +7848,12 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF
                // If we get this far, the callback or timeout will schedule the
                // If we get this far, the callback or timeout will schedule the
                // next restore state, so we're done
                // next restore state, so we're done
            } catch (Exception e) {
            } catch (Exception e) {
                Slog.e(TAG, "Unable to finalize restore of " + mCurrentPackage.packageName);
                final String packageName = mCurrentPackage.packageName;
                executeNextState(UnifiedRestoreState.FINAL);
                Slog.e(TAG, "Unable to finalize restore of " + packageName);
                EventLog.writeEvent(EventLogTags.RESTORE_AGENT_FAILURE,
                        packageName, e.toString());
                keyValueAgentErrorCleanup();
                executeNextState(UnifiedRestoreState.RUNNING_QUEUE);
            }
            }
        }
        }