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

Commit 61d530af authored by Zimuzo Ezeozue's avatar Zimuzo Ezeozue Committed by Android (Google) Code Review
Browse files

Merge "Fix log on next reset retry"

parents b8429e80 b8ca0544
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1997,10 +1997,11 @@ class StorageManagerService extends IStorageManager.Stub
                        } catch (ExternalStorageServiceException e) {
                            Slog.e(TAG, "Failed to mount volume " + vol, e);

                            Slog.i(TAG, "Scheduling reset in one minute");
                            int nextResetSeconds = REMOTE_TIMEOUT_SECONDS * 2;
                            Slog.i(TAG, "Scheduling reset in " + nextResetSeconds + "s");
                            mHandler.removeMessages(H_RESET);
                            mHandler.sendMessageDelayed(mHandler.obtainMessage(H_RESET),
                                    TimeUnit.SECONDS.toMillis(REMOTE_TIMEOUT_SECONDS * 2));
                                    TimeUnit.SECONDS.toMillis(nextResetSeconds));
                            return false;
                        } finally {
                            try {