Commit 104ebf09 authored by helene ortiz's avatar helene ortiz
Browse files

fix bug

parent d68fd701
...@@ -180,7 +180,7 @@ public class SessionManager { ...@@ -180,7 +180,7 @@ public class SessionManager {
SessionRequests.RemoteControlRequest request = SessionRequests.RemoteControlRequest.newBuilder() SessionRequests.RemoteControlRequest request = SessionRequests.RemoteControlRequest.newBuilder()
.setClientType(clientType) .setClientType(clientType)
.setClientID(clientId) .setClientID(clientId)
.setUser(user) .setUser(getUser())
.build(); .build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray()); sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
...@@ -204,7 +204,7 @@ public class SessionManager { ...@@ -204,7 +204,7 @@ public class SessionManager {
SessionRequests.RemoteControlRequest request = SessionRequests.RemoteControlRequest.newBuilder() SessionRequests.RemoteControlRequest request = SessionRequests.RemoteControlRequest.newBuilder()
.setClientType(clientType) .setClientType(clientType)
.setClientID(clientId) .setClientID(clientId)
.setUser(user) .setUser(getUser())
.build(); .build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray()); sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
...@@ -229,7 +229,7 @@ public class SessionManager { ...@@ -229,7 +229,7 @@ public class SessionManager {
SessionRequests.GetTokenRequest request = SessionRequests.GetTokenRequest.newBuilder() SessionRequests.GetTokenRequest request = SessionRequests.GetTokenRequest.newBuilder()
.setClientType(clientType) .setClientType(clientType)
.setClientID(clientId) .setClientID(clientId)
.setUser(user) .setUser(getUser())
.build(); .build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray()); sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
...@@ -252,7 +252,7 @@ public class SessionManager { ...@@ -252,7 +252,7 @@ public class SessionManager {
// Create the request. // Create the request.
SessionRequests.ReleaseTokenRequest request = SessionRequests.ReleaseTokenRequest.newBuilder() SessionRequests.ReleaseTokenRequest request = SessionRequests.ReleaseTokenRequest.newBuilder()
.setClientID(clientId) .setClientID(clientId)
.setUser(user) .setUser(getUser())
.build(); .build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray()); sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
...@@ -335,7 +335,7 @@ public class SessionManager { ...@@ -335,7 +335,7 @@ public class SessionManager {
} }
public String getUser() { private String getUser() {
if (user == null) { if (user == null) {
if (ConfigManager.getInstance().isRemoteClient()) { if (ConfigManager.getInstance().isRemoteClient()) {
user = getUserName(); user = getUserName();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment