From ab8e008b4f8d09cb74de15e0476d65b2e7761aef Mon Sep 17 00:00:00 2001 From: Hugo Zigha <hugo.zigha@al-enterprise.com> Date: Thu, 24 Nov 2022 13:54:09 +0100 Subject: [PATCH] MT#55676 Call to the webRTC not working properly Change-Id: I33710393f2a3a8fee3716fbe186a91949d0e36c5 --- src/store/call/actions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/call/actions.js b/src/store/call/actions.js index 822e2f2c..5e6e8a2b 100644 --- a/src/store/call/actions.js +++ b/src/store/call/actions.js @@ -77,7 +77,9 @@ export default { } else if (options.cause && !errorVisibilityTimer) { context.commit('endCall', options.cause) errorVisibilityTimer = setTimeout(() => { - context.commit('hangUpCall') + if (context.state.callState === 'ended') { + context.commit('hangUpCall') + } errorVisibilityTimer = null }, errorVisibilityTimeout) }