Update the app list on the 2nd successful server poll to warm the cache earlier

This commit is contained in:
Cameron Gutman 2016-09-11 22:01:21 -07:00
parent b94e7cd0c2
commit 506bc64b66

View File

@ -112,7 +112,7 @@ NvHTTP.prototype = {
// Poll for the app list every 10 successful serverinfo polls. // Poll for the app list every 10 successful serverinfo polls.
// Not including the first one to avoid PCs taking a while to show // Not including the first one to avoid PCs taking a while to show
// as online initially // as online initially
if (++this._pollCount % 10 == 0) { if (this._pollCount++ % 10 == 1) {
this.getAppListWithCacheFlush(); this.getAppListWithCacheFlush();
} }