diff --git a/labs/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/BigBlueButtonActor.scala b/labs/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/BigBlueButtonActor.scala index 968a3e4223..bdb9649651 100755 --- a/labs/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/BigBlueButtonActor.scala +++ b/labs/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/BigBlueButtonActor.scala @@ -170,13 +170,15 @@ class BigBlueButtonActor(val system: ActorSystem, outGW: MessageOutGateway, voic meetings.get(msg.meetingID) match { case None => println("Could not find meeting id[" + msg.meetingID + "] to destroy.") case Some(m) => { - m.actorRef ! StopMeetingActor meetings -= msg.meetingID log.info("Kick everyone out on meeting id[" + msg.meetingID + "].") outGW.send(new EndAndKickAll(msg.meetingID, m.recorded)) outGW.send(new DisconnectAllUsers(msg.meetingID)) log.info("Destroyed meeting id[" + msg.meetingID + "].") outGW.send(new MeetingDestroyed(msg.meetingID)) + + // Stop the meeting actor. + context.stop(m.actorRef) } } }