mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
FS-8300 [verto_communicator] Fixing reload bug, no need to do two times now.
This commit is contained in:
parent
85f9244dc3
commit
cb2588d88c
@ -528,7 +528,9 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
|||||||
cleanShareCall(that);
|
cleanShareCall(that);
|
||||||
} else {
|
} else {
|
||||||
stopConference();
|
stopConference();
|
||||||
cleanCall();
|
if (!that.reloaded) {
|
||||||
|
cleanCall();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -571,6 +573,13 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
|||||||
iceServers: storage.data.useSTUN
|
iceServers: storage.data.useSTUN
|
||||||
}, callbacks);
|
}, callbacks);
|
||||||
|
|
||||||
|
// We need to know when user reloaded page and not react to
|
||||||
|
// verto events in order to not stop the reload and redirect user back
|
||||||
|
// to the dialpad.
|
||||||
|
that.reloaded = false;
|
||||||
|
jQuery.verto.unloadJobs.push(function() {
|
||||||
|
that.reloaded = true;
|
||||||
|
});
|
||||||
data.instance.deviceParams({
|
data.instance.deviceParams({
|
||||||
useCamera: storage.data.selectedVideo,
|
useCamera: storage.data.selectedVideo,
|
||||||
useMic: storage.data.selectedAudio,
|
useMic: storage.data.selectedAudio,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user