summaryrefslogtreecommitdiff
path: root/update_engine_client_android.cc
diff options
context:
space:
mode:
Diffstat (limited to 'update_engine_client_android.cc')
-rw-r--r--update_engine_client_android.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/update_engine_client_android.cc b/update_engine_client_android.cc
index 989a97e1..267f6e98 100644
--- a/update_engine_client_android.cc
+++ b/update_engine_client_android.cc
@@ -97,7 +97,10 @@ Status UpdateEngineClientAndroid::UECallback::onPayloadApplicationComplete(
ErrorCode code = static_cast<ErrorCode>(error_code);
LOG(INFO) << "onPayloadApplicationComplete(" << utils::ErrorCodeToString(code)
<< " (" << error_code << "))";
- client_->ExitWhenIdle(code == ErrorCode::kSuccess ? EX_OK : 1);
+ client_->ExitWhenIdle(
+ (code == ErrorCode::kSuccess || code == ErrorCode::kUpdatedButNotActive)
+ ? EX_OK
+ : 1);
return Status::ok();
}