fix exception thrown when webrtc echo test fails on initialize

This commit is contained in:
Chad Pilkey 2017-08-23 18:48:07 -04:00
parent 9da077a194
commit 9c8c59733a

View File

@ -62,9 +62,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private static const TIMEOUT:Number = 60; private static const TIMEOUT:Number = 60;
private static const CANCEL_BUTTON:Number = 55; private static const CANCEL_BUTTON:Number = 55;
private var dotTimer:Timer; private var dotTimer:Timer = new Timer(200, 0);
private var cancelTimer:Timer; private var cancelTimer:Timer = new Timer(1000, 0);
private var countdown:Number; private var countdown:Number;
[Bindable] [Bindable]
@ -84,10 +84,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function onCreationComplete():void { private function onCreationComplete():void {
setCurrentState("connecting"); setCurrentState("connecting");
lblConnectMessage.text = lblConnectMessageMock.text = ResourceUtil.getInstance().getString('bbb.micSettings.webrtc.connecting'); lblConnectMessage.text = lblConnectMessageMock.text = ResourceUtil.getInstance().getString('bbb.micSettings.webrtc.connecting');
dotTimer = new Timer(200, 0);
dotTimer.addEventListener(TimerEvent.TIMER, dotAnimate); dotTimer.addEventListener(TimerEvent.TIMER, dotAnimate);
cancelTimer = new Timer(1000, 0);
cancelTimer.addEventListener(TimerEvent.TIMER, timeout); cancelTimer.addEventListener(TimerEvent.TIMER, timeout);
startTimers(); startTimers();