From 590fac0fa98bc32f45f7ad1c839ce0fd641a7d39 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 16 Oct 2020 16:46:07 +0100 Subject: [PATCH] Log the error when we failed to send candidates --- src/webrtc/call.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index e8c894a00..4b0afcdb4 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -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);