mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-06-18 23:00:56 +00:00
Fix adding PCs that are already paired
This commit is contained in:
+11
-1
@@ -339,6 +339,13 @@ function addHost() {
|
||||
var inputHost = $('#dialogInputHost').val();
|
||||
var _nvhttpHost = new NvHTTP(inputHost, myUniqueid, inputHost);
|
||||
|
||||
_nvhttpHost.refreshServerInfoAtAddress(inputHost).then(function(success) {
|
||||
if (hosts[_nvhttpHost.serverUid] != null) {
|
||||
_nvhttpHost.ppkstr = hosts[_nvhttpHost.serverUid].ppkstr;
|
||||
}
|
||||
|
||||
modal.close();
|
||||
|
||||
pairTo(_nvhttpHost, function() {
|
||||
// Check if we already have record of this host
|
||||
if (hosts[_nvhttpHost.serverUid] != null) {
|
||||
@@ -352,7 +359,10 @@ function addHost() {
|
||||
}
|
||||
saveHosts();
|
||||
});
|
||||
modal.close();
|
||||
}.bind(this),
|
||||
function(failure) {
|
||||
snackbarLog('Failed to connect to ' + _nvhttpHost.hostname + '! Ensure that GameStream is enabled in GeForce Experience.');
|
||||
}.bind(this));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user