You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Log the error when we failed to send candidates
This commit is contained in:
@@ -1143,7 +1143,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
if (this.candidateSendTries > 5) {
|
if (this.candidateSendTries > 5) {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"Failed to send candidates on attempt " + this.candidateSendTries +
|
"Failed to send candidates on attempt " + this.candidateSendTries +
|
||||||
". Giving up for now.",
|
". Giving up for now.", error,
|
||||||
);
|
);
|
||||||
this.candidateSendTries = 0;
|
this.candidateSendTries = 0;
|
||||||
return;
|
return;
|
||||||
@@ -1151,7 +1151,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
|
|
||||||
const delayMs = 500 * Math.pow(2, this.candidateSendTries);
|
const delayMs = 500 * Math.pow(2, this.candidateSendTries);
|
||||||
++this.candidateSendTries;
|
++this.candidateSendTries;
|
||||||
logger.debug("Failed to send candidates. Retrying in " + delayMs + "ms");
|
logger.debug("Failed to send candidates. Retrying in " + delayMs + "ms", error);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.sendCandidateQueue();
|
this.sendCandidateQueue();
|
||||||
}, delayMs);
|
}, delayMs);
|
||||||
|
|||||||
Reference in New Issue
Block a user