- reset viewing and sharing whenever there is a change in presenter

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@1901 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Richard Alam 2009-07-17 03:02:43 +00:00
parent 2bdabda35f
commit 162e7cfdae

View File

@ -140,11 +140,13 @@ package org.bigbluebutton.modules.deskShare.view
if (viewing) {
stopViewing();
facade.sendNotification(DeskShareModuleConstants.CLOSE_WINDOW);
viewing = false;
}
if (sharing) {
stopApplet();
facade.sendNotification(DeskShareModuleConstants.CLOSE_WINDOW);
sharing = false;
}
break;
}
@ -287,8 +289,12 @@ package org.bigbluebutton.modules.deskShare.view
*
*/
private function onStartViewingEvent(e:Event):void{
if (!viewing) startViewing();
else stopViewing();
if (!viewing) {
startViewing();
}
else {
stopViewing();
}
}
public function stop():void{