commit | 22ccc87a7dffd089662a111aa96127b3476d65fc | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Jun 10 23:52:11 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Jun 10 23:52:12 2015 +0000 |
tree | a411dbc27342a41b214becad56bf645018daabf0 | |
parent | a1009c346827c89f35d4feb011d01dd18de1b134 [diff] | |
parent | b4effb9807786fdd9bf0ad1b5a117d2fbb044594 [diff] |
Merge "Unmount sdcard if no package file is selected."
diff --git a/recovery.cpp b/recovery.cpp index 6cda10c..83ca581 100644 --- a/recovery.cpp +++ b/recovery.cpp
@@ -767,6 +767,7 @@ char* path = browse_directory(SDCARD_ROOT, device); if (path == NULL) { ui->Print("\n-- No package file selected.\n"); + ensure_path_unmounted(SDCARD_ROOT); return INSTALL_ERROR; }