am ba6747f1: Scan failure still means we finished scan.
* commit 'ba6747f119811032b258cf3c6334a4d0f9b675bf':
Scan failure still means we finished scan.
diff --git a/Disk.cpp b/Disk.cpp
index 218c251..5b5d769 100644
--- a/Disk.cpp
+++ b/Disk.cpp
@@ -260,6 +260,7 @@
status_t res = ForkExecvp(cmd, output);
if (res != OK) {
LOG(WARNING) << "sgdisk failed to scan " << mDevPath;
+ notifyEvent(ResponseCode::DiskScanned);
mJustPartitioned = false;
return res;
}
@@ -322,7 +323,6 @@
#endif
notifyEvent(ResponseCode::DiskScanned);
-
mJustPartitioned = false;
return OK;
}