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

Commit b8ca0544 authored by Zim's avatar Zim Committed by Zimuzo Ezeozue
Browse files

Fix log on next reset retry

Test: m
Change-Id: I7661b63f106a382675d34707ba666821ca1f6640
parent 0231ac86
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 {