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

Commit c65347f2 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Android Git Automerger
Browse files

am bf44ebae: am 9de93424: Merge "Without SD card the shutdown sequence was delayed"

* commit 'bf44ebae':
  Without SD card the shutdown sequence was delayed
parents 890729c8 bf44ebae
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1155,6 +1155,17 @@ class MountService extends IMountService.Stub
            // Post a unmount message.
            ShutdownCallBack ucb = new ShutdownCallBack(path, observer);
            mHandler.sendMessage(mHandler.obtainMessage(H_UNMOUNT_PM_UPDATE, ucb));
        } else if (observer != null) {
            /*
             * Observer is waiting for onShutDownComplete when we are done.
             * Since nothing will be done send notification directly so shutdown
             * sequence can continue.
             */
            try {
                observer.onShutDownComplete(StorageResultCode.OperationSucceeded);
            } catch (RemoteException e) {
                Slog.w(TAG, "RemoteException when shutting down");
            }
        }
    }