mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Don't cache results from a failed applist query
This commit is contained in:
parent
479a8949a8
commit
a5adc7eff1
@ -263,6 +263,13 @@ NvHTTP.prototype = {
|
||||
getAppListWithCacheFlush: function () {
|
||||
return sendMessage('openUrl', [this._baseUrlHttps + '/applist?' + this._buildUidStr(), false]).then(function (ret) {
|
||||
$xml = this._parseXML(ret);
|
||||
$root = $xml.find("root");
|
||||
|
||||
if ($root.attr("status_code") != 200) {
|
||||
// TODO: Bubble up an error here
|
||||
console.log('applist request failed: ' + $root.attr("status_code"));
|
||||
return [];
|
||||
}
|
||||
|
||||
var rootElement = $xml.find("root")[0];
|
||||
var appElements = rootElement.getElementsByTagName("App");
|
||||
|
Loading…
x
Reference in New Issue
Block a user