From d492880938e5d9c4a45962aa9bb95e30267815cc Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Fri, 7 Feb 2014 14:44:38 -0800 Subject: [PATCH] Bug 969511 - Don't update snippets cache unless the update timer fired. r=wesj --- mobile/android/components/Snippets.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/android/components/Snippets.js b/mobile/android/components/Snippets.js index d980a7096d9..6438736709b 100644 --- a/mobile/android/components/Snippets.js +++ b/mobile/android/components/Snippets.js @@ -136,9 +136,8 @@ function cacheSnippets(response) { function loadSnippetsFromCache() { let promise = OS.File.read(gSnippetsPath); promise.then(array => updateBanner(gDecoder.decode(array)), e => { - // If snippets.json doesn't exist, update data from the server. if (e instanceof OS.File.Error && e.becauseNoSuchFile) { - update(); + Cu.reportError("Couldn't show snippets because cache does not exist yet."); } else { Cu.reportError("Error loading snippets from cache: " + e); }