mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Improve handling of attempting to quit another client's session
This commit is contained in:
parent
798ba56a15
commit
bd881aaee4
@ -438,9 +438,11 @@ NvHTTP.prototype = {
|
||||
},
|
||||
|
||||
quitApp: function () {
|
||||
return sendMessage('openUrl', [this._baseUrlHttps + '/cancel?' + this._buildUidStr(), false]).then(function () {
|
||||
this.currentGame = 0;
|
||||
}.bind(this));
|
||||
return sendMessage('openUrl', [this._baseUrlHttps + '/cancel?' + this._buildUidStr(), false])
|
||||
// Refresh server info after quitting because it may silently fail if the
|
||||
// session belongs to a different client.
|
||||
// TODO: We should probably bubble this up to our caller.
|
||||
.then(refreshServerInfo().bind(this));
|
||||
},
|
||||
|
||||
pair: function(randomNumber) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user