1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Log the error when we failed to send candidates

This commit is contained in:
David Baker
2020-10-16 16:46:07 +01:00
parent 4cc4b28c47
commit 590fac0fa9

View File

@@ -1143,7 +1143,7 @@ export class MatrixCall extends EventEmitter {
if (this.candidateSendTries > 5) {
logger.debug(
"Failed to send candidates on attempt " + this.candidateSendTries +
". Giving up for now.",
". Giving up for now.", error,
);
this.candidateSendTries = 0;
return;
@@ -1151,7 +1151,7 @@ export class MatrixCall extends EventEmitter {
const delayMs = 500 * Math.pow(2, 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(() => {
this.sendCandidateQueue();
}, delayMs);