From af8ff1b88866aa392b94be5e2b3a0f59b76c8a24 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 16 Nov 2017 11:07:57 +0000 Subject: [PATCH] Don't blindly hangup on a call error. Not all errors means we want to send a hangup (in fact most don't, but the most notable being when we fail to answer a call: we should not then automatically reject it). --- src/CallHandler.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/CallHandler.js b/src/CallHandler.js index eba1c9995e..918f38976a 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -117,7 +117,6 @@ function _setCallListeners(call) { call.on("error", function(err) { console.error("Call error: %s", err); console.error(err.stack); - call.hangup(); _setCallState(undefined, call.roomId, "ended"); if (err.code === 'unknown_devices') { const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");