Skip to content

Commit 849ee4b

Browse files
Shushant Singhkrisctl
authored andcommitted
Removes concurrent session detection dependency on session storage.
1 parent f7d9142 commit 849ee4b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

gui/src/actionCreators/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export function fetchServerStatus (requestTransferSession = false) {
244244
const isAuthEnabled = selectAuthEnabled(getState());
245245
const isAuthenticated = selectIsAuthenticated(getState());
246246
const clientIdInState = selectClientId(getState());
247-
const clientId = clientIdInState || sessionStorage.getItem('MWI_CLIENT_ID');
247+
const clientId = clientIdInState;
248248

249249
dispatch(requestServerStatus());
250250
let url = './get_status';
@@ -269,7 +269,6 @@ export function fetchServerStatus (requestTransferSession = false) {
269269
dispatch(receiveServerStatus(data));
270270

271271
if (clientId == null && data.clientId) {
272-
sessionStorage.setItem('MWI_CLIENT_ID', data.clientId);
273272
dispatch(setClientId(data.clientId));
274273
}
275274
if ('isActiveClient' in data) {

matlab_proxy/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,9 @@ async def clear_client_id(req):
139139
Returns:
140140
Response: an empty response in JSON format
141141
"""
142-
# Sleep for one second prior to clearing the client id to ensure that any remaining get_status responses are fully processed first.
143-
await asyncio.sleep(1)
144142
state = req.app["state"]
145143
state.active_client = None
144+
logger.debug("Client Id was cleaned!!!")
146145
# This response is of no relevance to the front-end as the client has already exited
147146
return web.json_response({})
148147

0 commit comments

Comments
 (0)