- create only one netConnection to bbb-apps. Not re-create one when reconnecting.

This commit is contained in:
Richard Alam 2016-11-11 22:37:14 +00:00
parent 3ff537cff6
commit d88ec9c0e6

View File

@ -66,6 +66,13 @@ package org.bigbluebutton.main.model.users
public function NetConnectionDelegate():void {
dispatcher = new Dispatcher();
_netConnection = new NetConnection();
_netConnection.proxyType = "best";
_netConnection.client = this;
_netConnection.addEventListener( NetStatusEvent.NET_STATUS, netStatus );
_netConnection.addEventListener( AsyncErrorEvent.ASYNC_ERROR, netASyncError );
_netConnection.addEventListener( SecurityErrorEvent.SECURITY_ERROR, netSecurityError );
_netConnection.addEventListener( IOErrorEvent.IO_ERROR, netIOError );
}
@ -250,13 +257,6 @@ package org.bigbluebutton.main.model.users
public function connect():void {
var confParams:ConferenceParameters = BBB.initUserConfigManager().getConfParams();
_netConnection = new NetConnection();
_netConnection.proxyType = "best";
_netConnection.client = this;
_netConnection.addEventListener( NetStatusEvent.NET_STATUS, netStatus );
_netConnection.addEventListener( AsyncErrorEvent.ASYNC_ERROR, netASyncError );
_netConnection.addEventListener( SecurityErrorEvent.SECURITY_ERROR, netSecurityError );
_netConnection.addEventListener( IOErrorEvent.IO_ERROR, netIOError );
try {
var appURL:String = BBB.getConfigManager().config.application.uri;