FS-8088 - [verto_communicator] Unsubscribing from liveArray after ending a conference call.

This commit is contained in:
Italo Rossi 2015-09-03 23:13:34 -03:00
parent 2d2a27f6ad
commit 7fd43421b1
1 changed files with 2 additions and 0 deletions

View File

@ -413,6 +413,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
function stopConference() {
console.log('stopConference()');
if (data.liveArray) {
data.liveArray.destroy();
console.log('Has data.liveArray.');
$rootScope.$emit('members.clear');
data.liveArray = null;
@ -504,6 +505,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
cleanShareCall(that);
} else {
if (data.conf) {
data.liveArray.destroy();
data.conf.destroy();
}
cleanCall();