- 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; break;
case MainApplicationConstants.MODULE_STOPPED: case MainApplicationConstants.MODULE_STOPPED:
var info:Object = notification.getBody(); var info:Object = notification.getBody();
handleModuleStopped(info.moduleId, info.errors); // handleModuleStopped(info.moduleId, info.errors);
break; break;
case MainApplicationConstants.LOADED_MODULE: case MainApplicationConstants.LOADED_MODULE:
shell.loadedModules.text += notification.getBody() + "(loaded) "; shell.loadedModules.text += notification.getBody() + "(loaded) ";

View File

@ -65,10 +65,10 @@ package org.bigbluebutton.modules.listeners
case ListenersModuleConstants.DISCONNECTED: case ListenersModuleConstants.DISCONNECTED:
LogUtil.debug(NAME + ':Sending MODULE_STOPPED message to main'); LogUtil.debug(NAME + ':Sending MODULE_STOPPED message to main');
facade.sendNotification(ListenersModuleConstants.CLOSE_WINDOW); facade.sendNotification(ListenersModuleConstants.CLOSE_WINDOW);
var info:Object = notification.getBody(); // var info:Object = notification.getBody();
info["moduleId"] = _module.moduleId; // info["moduleId"] = _module.moduleId;
_endpoint.sendMessage(EndpointMessageConstants.MODULE_STOPPED, // _endpoint.sendMessage(EndpointMessageConstants.MODULE_STOPPED,
EndpointMessageConstants.TO_MAIN_APP, info); // EndpointMessageConstants.TO_MAIN_APP, info);
break; break;
case ListenersModuleConstants.ADD_WINDOW: case ListenersModuleConstants.ADD_WINDOW:
LogUtil.debug(NAME + ':Sending ADD_WINDOW message to main'); 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 public class StopCommand extends SimpleCommand
{ {
override public function execute(notification:INotification):void{ override public function execute(notification:INotification):void{
LogUtil.debug("ListenersModule StopCommand");
if (facade.hasProxy(ListenersProxy.NAME)) { if (facade.hasProxy(ListenersProxy.NAME)) {
var p:ListenersProxy = facade.retrieveProxy(ListenersProxy.NAME) as ListenersProxy; var p:ListenersProxy = facade.retrieveProxy(ListenersProxy.NAME) as ListenersProxy;
p.stop(); p.stop();

View File

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