Use static 5 second retry wait period
This commit is contained in:
parent
c023249a1a
commit
6addd838b4
1 changed files with 2 additions and 4 deletions
|
@ -619,7 +619,7 @@ export class ConferenceCallManager extends EventEmitter {
|
|||
content,
|
||||
stateKey,
|
||||
callback,
|
||||
maxAttempts = 3
|
||||
maxAttempts = 5
|
||||
) {
|
||||
const sendStateEventWithRetry = async (attempt = 0) => {
|
||||
try {
|
||||
|
@ -635,9 +635,7 @@ export class ConferenceCallManager extends EventEmitter {
|
|||
throw error;
|
||||
}
|
||||
|
||||
await new Promise((resolve) =>
|
||||
setTimeout(resolve(), Math.pow(2, attempt) * 5)
|
||||
);
|
||||
await new Promise((resolve) => setTimeout(resolve(), 5));
|
||||
|
||||
return sendStateEventWithRetry(attempt + 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue