Skip to content
Snippets Groups Projects
Commit 8e4d6bb1 authored by Andrew A. de Laix's avatar Andrew A. de Laix
Browse files

fix CHOP-366, on temporary errors (e.g. version manager returns other than...

fix CHOP-366, on temporary errors (e.g. version manager returns other than 200) show error dialog instructing the user to manually install the latest viewer.
parent c3fe256e
Branches
Tags
No related merge requests found
...@@ -214,6 +214,9 @@ void MandatoryUpdateMachine::start(void) ...@@ -214,6 +214,9 @@ void MandatoryUpdateMachine::start(void)
case LLUpdaterService::CHECKING_FOR_UPDATE: case LLUpdaterService::CHECKING_FOR_UPDATE:
setCurrentState(new CheckingForUpdate(*this)); setCurrentState(new CheckingForUpdate(*this));
break; break;
case LLUpdaterService::TEMPORARY_ERROR:
setCurrentState(new Error(*this));
break;
case LLUpdaterService::DOWNLOADING: case LLUpdaterService::DOWNLOADING:
setCurrentState(new WaitingForDownload(*this)); setCurrentState(new WaitingForDownload(*this));
break; break;
...@@ -289,6 +292,7 @@ bool MandatoryUpdateMachine::CheckingForUpdate::onEvent(LLSD const & event) ...@@ -289,6 +292,7 @@ bool MandatoryUpdateMachine::CheckingForUpdate::onEvent(LLSD const & event)
case LLUpdaterService::DOWNLOADING: case LLUpdaterService::DOWNLOADING:
mMachine.setCurrentState(new WaitingForDownload(mMachine)); mMachine.setCurrentState(new WaitingForDownload(mMachine));
break; break;
case LLUpdaterService::TEMPORARY_ERROR:
case LLUpdaterService::UP_TO_DATE: case LLUpdaterService::UP_TO_DATE:
case LLUpdaterService::TERMINAL: case LLUpdaterService::TERMINAL:
case LLUpdaterService::FAILURE: case LLUpdaterService::FAILURE:
...@@ -324,7 +328,7 @@ MandatoryUpdateMachine::Error::Error(MandatoryUpdateMachine & machine): ...@@ -324,7 +328,7 @@ MandatoryUpdateMachine::Error::Error(MandatoryUpdateMachine & machine):
void MandatoryUpdateMachine::Error::enter(void) void MandatoryUpdateMachine::Error::enter(void)
{ {
llinfos << "entering error" << llendl; llinfos << "entering error" << llendl;
LLNotificationsUtil::add("FailedUpdateInstall", LLSD(), LLSD(), boost::bind(&MandatoryUpdateMachine::Error::onButtonClicked, this, _1, _2)); LLNotificationsUtil::add("FailedRequiredUpdateInstall", LLSD(), LLSD(), boost::bind(&MandatoryUpdateMachine::Error::onButtonClicked, this, _1, _2));
} }
......
...@@ -361,6 +361,7 @@ void LLUpdaterServiceImpl::error(std::string const & message) ...@@ -361,6 +361,7 @@ void LLUpdaterServiceImpl::error(std::string const & message)
{ {
if(mIsChecking) if(mIsChecking)
{ {
setState(LLUpdaterService::TEMPORARY_ERROR);
restartTimer(mCheckPeriod); restartTimer(mCheckPeriod);
} }
} }
......
...@@ -59,6 +59,7 @@ class LLUpdaterService ...@@ -59,6 +59,7 @@ class LLUpdaterService
enum eUpdaterState { enum eUpdaterState {
INITIAL, INITIAL,
CHECKING_FOR_UPDATE, CHECKING_FOR_UPDATE,
TEMPORARY_ERROR,
DOWNLOADING, DOWNLOADING,
INSTALLING, INSTALLING,
UP_TO_DATE, UP_TO_DATE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment