Better control for bigbluebutton reconnection
This commit is contained in:
parent
003977982c
commit
655ed560ed
@ -273,9 +273,11 @@ package org.bigbluebutton.main.model.users
|
||||
if (this.isModerator()) sender.changeRole(e.userid, e.role);
|
||||
}
|
||||
|
||||
public function onReconnecting():void {
|
||||
trace(LOG + "onReconnecting");
|
||||
reconnecting = true;
|
||||
public function onReconnecting(e:BBBEvent):void {
|
||||
if (e.payload.type == "BIGBLUEBUTTON_CONNECTION") {
|
||||
trace(LOG + "onReconnecting");
|
||||
reconnecting = true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -445,8 +445,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
}
|
||||
|
||||
private function closeWaitWindow(evt:BBBEvent):void {
|
||||
if(waitWindow != null) {
|
||||
private function closeWaitWindow(e:BBBEvent):void {
|
||||
if(waitWindow != null && e.payload.type == "BIGBLUEBUTTON_CONNECTION") {
|
||||
trace(LOG + "closeWaitWindow");
|
||||
waitWindow.removeWindow();
|
||||
}
|
||||
|
@ -96,7 +96,7 @@
|
||||
</EventHandlers>
|
||||
|
||||
<EventHandlers type="{BBBEvent.RECONNECT_DISCONNECTED_EVENT}">
|
||||
<MethodInvoker generator="{SharedNotesEventMapDelegate}" method="destroyAllAdditionalNotes"/>
|
||||
<MethodInvoker generator="{SharedNotesEventMapDelegate}" method="destroyAllAdditionalNotes" arguments="{event}"/>
|
||||
</EventHandlers>
|
||||
|
||||
<EventHandlers type="{BBBEvent.RECONNECT_BIGBLUEBUTTON_SUCCEEDED_EVENT}">
|
||||
|
@ -28,6 +28,7 @@ package org.bigbluebutton.modules.sharednotes.maps
|
||||
import org.bigbluebutton.common.events.ToolbarButtonEvent;
|
||||
import org.bigbluebutton.core.BBB;
|
||||
import org.bigbluebutton.core.managers.UserManager;
|
||||
import org.bigbluebutton.main.events.BBBEvent;
|
||||
import org.bigbluebutton.modules.sharednotes.views.SharedNotesWindow;
|
||||
import org.bigbluebutton.modules.sharednotes.views.AdditionalSharedNotesWindow;
|
||||
import org.bigbluebutton.common.events.CloseWindowEvent;
|
||||
@ -114,8 +115,10 @@ package org.bigbluebutton.modules.sharednotes.maps
|
||||
}
|
||||
}
|
||||
|
||||
public function destroyAllAdditionalNotes():void {
|
||||
for (var noteId:String in windows) destroyAdditionalNotes(noteId);
|
||||
public function destroyAllAdditionalNotes(e:BBBEvent):void {
|
||||
if (e.payload.type == "BIGBLUEBUTTON_CONNECTION") {
|
||||
for (var noteId:String in windows) destroyAdditionalNotes(noteId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
</EventHandlers>
|
||||
|
||||
<EventHandlers type="{BBBEvent.RECONNECT_DISCONNECTED_EVENT}">
|
||||
<MethodInvoker generator="{UserService}" method="onReconnecting" />
|
||||
<MethodInvoker generator="{UserService}" method="onReconnecting" arguments="{event}" />
|
||||
</EventHandlers>
|
||||
<!-- End Lock Events -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user