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

fix bug

parent d68fd701
......@@ -180,7 +180,7 @@ public class SessionManager {
SessionRequests.RemoteControlRequest request = SessionRequests.RemoteControlRequest.newBuilder()
.setClientType(clientType)
.setClientID(clientId)
.setUser(user)
.setUser(getUser())
.build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
......@@ -204,7 +204,7 @@ public class SessionManager {
SessionRequests.RemoteControlRequest request = SessionRequests.RemoteControlRequest.newBuilder()
.setClientType(clientType)
.setClientID(clientId)
.setUser(user)
.setUser(getUser())
.build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
......@@ -229,7 +229,7 @@ public class SessionManager {
SessionRequests.GetTokenRequest request = SessionRequests.GetTokenRequest.newBuilder()
.setClientType(clientType)
.setClientID(clientId)
.setUser(user)
.setUser(getUser())
.build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
......@@ -252,7 +252,7 @@ public class SessionManager {
// Create the request.
SessionRequests.ReleaseTokenRequest request = SessionRequests.ReleaseTokenRequest.newBuilder()
.setClientID(clientId)
.setUser(user)
.setUser(getUser())
.build();
sessionRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
......@@ -335,7 +335,7 @@ public class SessionManager {
}
public String getUser() {
private String getUser() {
if (user == null) {
if (ConfigManager.getInstance().isRemoteClient()) {
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