You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2018/10/21 15:34:17 UTC

[openmeetings] branch master updated: [OPENMEETINGS-1352] clean should be more stable

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 16e08d0  [OPENMEETINGS-1352] clean should be more stable
16e08d0 is described below

commit 16e08d0ed604730e429d0c046646e0e9971f7f95
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Sun Oct 21 22:34:05 2018 +0700

    [OPENMEETINGS-1352] clean should be more stable
---
 .../java/org/apache/openmeetings/web/room/raw-video-util.js  | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video-util.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video-util.js
index 01036a9..7b21a2e 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video-util.js
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video-util.js
@@ -110,10 +110,14 @@ var VideoUtil = (function() {
 		if (!!peer) {
 			peer.cleaned = true;
 			const pc = peer.peerConnection;
-			if (!!pc && !!pc.getLocalStreams()) {
-				pc.getLocalStreams().forEach(function(stream) {
-					_cleanStream(stream);
-				});
+			try {
+				if (!!pc && !!pc.getLocalStreams()) {
+					pc.getLocalStreams().forEach(function(stream) {
+						_cleanStream(stream);
+					});
+				}
+			} catch(e) {
+				OmUtil.log('Failed to clean peer' + e);
 			}
 			peer.dispose();
 			peer = null;