From 506bc64b6644e53a39bd9de586938dfb80c39f25 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 11 Sep 2016 22:01:21 -0700 Subject: [PATCH] Update the app list on the 2nd successful server poll to warm the cache earlier --- static/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index 1005dad..d1477ed 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -112,7 +112,7 @@ NvHTTP.prototype = { // Poll for the app list every 10 successful serverinfo polls. // Not including the first one to avoid PCs taking a while to show // as online initially - if (++this._pollCount % 10 == 0) { + if (this._pollCount++ % 10 == 1) { this.getAppListWithCacheFlush(); }