This commit is contained in:
Peter Maquiran
2023-01-03 21:08:49 +01:00
parent f7aae9aa00
commit fcc8bc6b74
20 changed files with 356 additions and 68 deletions
+7 -2
View File
@@ -389,18 +389,23 @@ export class ChatService {
} catch (error) {
this.resetTimer();
await this.refreshtoken();
setTimeout(async() =>{
await this.refreshtoken();
}, 8000)
}
} else if(!SessionStore.user.ChatData) {
// do nothing
} else if (!this.headers) {
this.setheader()
this.refreshtoken()
} else {
setTimeout(async ()=>{
await this.refreshtoken();
}, 4000)
}, 8000)
}
}