- remove listeners window when user logs out

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@1413 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Richard Alam 2009-05-08 13:56:13 +00:00
parent 5531c16731
commit 22f278207b
4 changed files with 10 additions and 6 deletions

View File

@ -130,7 +130,7 @@ package org.bigbluebutton.main.view
break;
case MainApplicationConstants.MODULE_STOPPED:
var info:Object = notification.getBody();
handleModuleStopped(info.moduleId, info.errors);
// handleModuleStopped(info.moduleId, info.errors);
break;
case MainApplicationConstants.LOADED_MODULE:
shell.loadedModules.text += notification.getBody() + "(loaded) ";

View File

@ -65,10 +65,10 @@ package org.bigbluebutton.modules.listeners
case ListenersModuleConstants.DISCONNECTED:
LogUtil.debug(NAME + ':Sending MODULE_STOPPED message to main');
facade.sendNotification(ListenersModuleConstants.CLOSE_WINDOW);
var info:Object = notification.getBody();
info["moduleId"] = _module.moduleId;
_endpoint.sendMessage(EndpointMessageConstants.MODULE_STOPPED,
EndpointMessageConstants.TO_MAIN_APP, info);
// var info:Object = notification.getBody();
// info["moduleId"] = _module.moduleId;
// _endpoint.sendMessage(EndpointMessageConstants.MODULE_STOPPED,
// EndpointMessageConstants.TO_MAIN_APP, info);
break;
case ListenersModuleConstants.ADD_WINDOW:
LogUtil.debug(NAME + ':Sending ADD_WINDOW message to main');

View File

@ -26,6 +26,7 @@ package org.bigbluebutton.modules.listeners.controller
public class StopCommand extends SimpleCommand
{
override public function execute(notification:INotification):void{
LogUtil.debug("ListenersModule StopCommand");
if (facade.hasProxy(ListenersProxy.NAME)) {
var p:ListenersProxy = facade.retrieveProxy(ListenersProxy.NAME) as ListenersProxy;
p.stop();

View File

@ -91,7 +91,10 @@ package org.bigbluebutton.modules.listeners.model.service
private function leave():void
{
if (_listenersSO != null) _listenersSO.close();
if (_listenersSO != null) {
_listenersSO.close();
}
notifyConnectionStatusListener(false);
}
public function addConnectionStatusListener(connectionListener:Function):void {