mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user