diff --git a/moonlight-common/src/com/limelight/nvstream/NvConnection.java b/moonlight-common/src/com/limelight/nvstream/NvConnection.java index b36f6d9e..4ae89828 100644 --- a/moonlight-common/src/com/limelight/nvstream/NvConnection.java +++ b/moonlight-common/src/com/limelight/nvstream/NvConnection.java @@ -102,7 +102,7 @@ public class NvConnection { { NvHTTP h = new NvHTTP(context.serverAddress, uniqueId, null, cryptoProvider); - String serverInfo = h.getServerInfo(uniqueId); + String serverInfo = h.getServerInfo(); String serverVersion = h.getServerVersion(serverInfo); if (serverVersion == null || serverVersion.indexOf('.') < 0) { context.connListener.displayMessage("Server major version not present"); diff --git a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java index a0efb2a5..036b7a34 100644 --- a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java +++ b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java @@ -169,7 +169,7 @@ public class NvHTTP { } } - public String getServerInfo(String uniqueId) throws MalformedURLException, IOException, XmlPullParserException { + public String getServerInfo() throws MalformedURLException, IOException, XmlPullParserException { String resp; try { resp = openHttpConnectionToString(baseUrlHttps + "/serverinfo?uniqueid=" + uniqueId, true); @@ -192,7 +192,7 @@ public class NvHTTP { public ComputerDetails getComputerDetails() throws MalformedURLException, IOException, XmlPullParserException { ComputerDetails details = new ComputerDetails(); - String serverInfo = getServerInfo(uniqueId); + String serverInfo = getServerInfo(); details.name = getXmlString(serverInfo, "hostname").trim(); details.uuid = UUID.fromString(getXmlString(serverInfo, "uniqueid").trim()); @@ -328,7 +328,7 @@ public class NvHTTP { } public PairingManager.PairState getPairState() throws IOException, XmlPullParserException { - return pm.getPairState(getServerInfo(uniqueId)); + return pm.getPairState(getServerInfo()); } public PairingManager.PairState getPairState(String serverInfo) throws IOException, XmlPullParserException {