From ccad3c276c26cbd3ad8161fda533d5da3b755d32 Mon Sep 17 00:00:00 2001
From: Martin Klampfer <martin.klampfer@fairkom.eu>
Date: Wed, 5 May 2021 18:44:23 +0200
Subject: [PATCH] Bugfix/86 interpretation playing after disconnecting audio

---
 .../imports/ui/services/audio-manager/index.js             | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js
index 7c24ad6ff2..e3ce03ed14 100755
--- a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js
+++ b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js
@@ -304,6 +304,12 @@ class AudioManager {
     return Promise.resolve();
   }
 
+  exitTranslationBridgeAudio() {
+    if( this.translationBridge.activeSession ) {
+      this.translationBridge.exitAudio();
+    }
+  }
+
   exitAudio() {
     if (!this.isConnected) return Promise.resolve();
 
@@ -311,6 +317,7 @@ class AudioManager {
 
     this.isHangingUp = true;
 
+    this.exitTranslationBridgeAudio();
     return bridge.exitAudio();
   }
 
-- 
GitLab