Index: update_attempter.cc |
diff --git a/update_attempter.cc b/update_attempter.cc |
index 3ea1c18ff3f9352364b2c717167400ee83e3ea7e..949434e87b753074e3f7f9205e3b39857db1a34e 100644 |
--- a/update_attempter.cc |
+++ b/update_attempter.cc |
@@ -456,12 +456,12 @@ void UpdateAttempter::CreatePendingErrorEvent(AbstractAction* action, |
return; |
} |
- // For now assume that Omaha response action failure means that |
- // there's no update so don't send an event. Also, double check that |
- // the failure has not occurred while sending an error event -- in |
- // which case don't schedule another. This shouldn't really happen |
- // but just in case... |
- if (action->Type() == OmahaResponseHandlerAction::StaticType() || |
+ // For now assume that a generic Omaha response action failure means that |
+ // there's no update so don't send an event. Also, double check that the |
+ // failure has not occurred while sending an error event -- in which case |
+ // don't schedule another. This shouldn't really happen but just in case... |
+ if ((action->Type() == OmahaResponseHandlerAction::StaticType() && |
+ code == kActionCodeError) || |
status_ == UPDATE_STATUS_REPORTING_ERROR_EVENT) { |
return; |
} |