Scan failure still means we finished scan.
Bug: 19993667 Change-Id: If6a79391e34b652b2ba4e6df40a8e712f7a2e172
This commit is contained in:
parent
c98d1f5883
commit
ba6747f119
1 changed files with 1 additions and 1 deletions
2
Disk.cpp
2
Disk.cpp
|
@ -260,6 +260,7 @@ status_t Disk::readPartitions() {
|
|||
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 @@ status_t Disk::readPartitions() {
|
|||
#endif
|
||||
|
||||
notifyEvent(ResponseCode::DiskScanned);
|
||||
|
||||
mJustPartitioned = false;
|
||||
return OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue