You've already forked matrix-js-sdk
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user