Merge branch 'master' of https://github.com/wso2/carbon-device-mgt-plugins into remote-control

revert-dabc3590
warunalakshitha 8 years ago
commit b407287b7c

@ -81,7 +81,7 @@ public class DeviceAuthorizer implements Authorizer {
} }
@Override @Override
public boolean isAuthorized(AuthenticationInfo authenticationInfo, Session session, String stream) { public synchronized boolean isAuthorized(AuthenticationInfo authenticationInfo, Session session, String stream) {
WebSocketSessionRequest webSocketSessionRequest = new WebSocketSessionRequest(session); WebSocketSessionRequest webSocketSessionRequest = new WebSocketSessionRequest(session);
Map<String, String> queryParams = webSocketSessionRequest.getQueryParamValuePairs(); Map<String, String> queryParams = webSocketSessionRequest.getQueryParamValuePairs();
String deviceId = queryParams.get(DEVICE_ID); String deviceId = queryParams.get(DEVICE_ID);

Loading…
Cancel
Save