Skip to content

Commit 90b0b95

Browse files
committed
retry logout after 5" 5 times max
1 parent ac11684 commit 90b0b95

File tree

1 file changed

+6
-2
lines changed
  • services/static-webserver/client/source/class/osparc/auth

1 file changed

+6
-2
lines changed

services/static-webserver/client/source/class/osparc/auth/Manager.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,13 @@ qx.Class.define("osparc.auth.Manager", {
212212
"client_session_id": osparc.utils.Utils.getClientSessionID()
213213
}
214214
};
215-
return osparc.data.Resources.fetch("auth", "postLogout", params)
215+
const options = {
216+
timeout: 5000,
217+
timeoutRetries: 5
218+
};
219+
return osparc.data.Resources.fetch("auth", "postLogout", params, options)
216220
.then(() => this.fireEvent("loggedOut"))
217-
.catch(error => console.log("already logged out"))
221+
.catch(() => console.log("already logged out"))
218222
.finally(this.__logoutUser());
219223
},
220224

0 commit comments

Comments
 (0)