diff --git a/src/extensions/default/AutoUpdate/main.js b/src/extensions/default/AutoUpdate/main.js index da8eff67c4b..a4fa83f1411 100644 --- a/src/extensions/default/AutoUpdate/main.js +++ b/src/extensions/default/AutoUpdate/main.js @@ -486,12 +486,12 @@ define(function (require, exports, module) { } else { // Update not present for current platform - return; + return false; } if (!checksum || !downloadURL || !installerName) { console.warn("AutoUpdate : asset information incorrect for the update"); - return; + return false; } var updateParams = { diff --git a/src/utils/UpdateNotification.js b/src/utils/UpdateNotification.js index 8bef34b0ac7..dd012e4027c 100644 --- a/src/utils/UpdateNotification.js +++ b/src/utils/UpdateNotification.js @@ -512,7 +512,12 @@ define(function (require, exports, module) { */ function handleUpdateProcess(updates) { var handler = _updateProcessHandler || _defaultUpdateProcessHandler; - handler(updates); + var success = handler(updates); + if (_updateProcessHandler && !success) { + // Give a chance to default handler in case + // the auot update mechanism has failed. + _defaultUpdateProcessHandler(updates); + } } /**