Skip to content
Snippets Groups Projects
Commit 93620df0 authored by Felipe Cecagno's avatar Felipe Cecagno
Browse files

implement the same protection we did for publish on view

parent 9c099aeb
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,11 @@ package org.bigbluebutton.modules.videoconf.views
}
public function publish(camIndex:int, videoProfile:VideoProfile):void {
if (_shuttingDown) {
LOGGER.warn("Method publish called while shutting down the video window, ignoring...");
return;
}
_camIndex = camIndex;
_videoProfile = videoProfile;
setOriginalDimensions(_videoProfile.width, _videoProfile.height);
......@@ -79,16 +84,14 @@ package org.bigbluebutton.modules.videoconf.views
}
private function startPublishing():void {
if(!_shuttingDown){
_streamName = newStreamName();
_shuttingDown = false;
var e:StartBroadcastEvent = new StartBroadcastEvent();
e.stream = _streamName;
e.camera = _video.getCamera();
e.videoProfile = _videoProfile;
_dispatcher.dispatchEvent(e);
}
_streamName = newStreamName();
_shuttingDown = false;
var e:StartBroadcastEvent = new StartBroadcastEvent();
e.stream = _streamName;
e.camera = _video.getCamera();
e.videoProfile = _videoProfile;
_dispatcher.dispatchEvent(e);
}
public function shutdown():void {
......@@ -126,6 +129,11 @@ package org.bigbluebutton.modules.videoconf.views
}
public function view(connection:NetConnection, streamName:String):void {
if (_shuttingDown) {
LOGGER.warn("Method view called while shutting down the video window, ignoring...");
return;
}
_streamName = streamName;
_shuttingDown = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment