From 40e16b0002465b543b3a28f2c6641cb130f88bf0 Mon Sep 17 00:00:00 2001 From: Ghazi Triki Date: Thu, 17 Nov 2016 14:12:41 +0100 Subject: [PATCH] Use local context instead of the global context for scheduleOnce. --- .../src/main/scala/org/bigbluebutton/core/LiveMeeting.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/LiveMeeting.scala b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/LiveMeeting.scala index 92c66ce1bd..13f3fd9895 100755 --- a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/LiveMeeting.scala +++ b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/LiveMeeting.scala @@ -2,7 +2,6 @@ package org.bigbluebutton.core import java.util.concurrent.TimeUnit -import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration.Duration import org.bigbluebutton.core.api._ @@ -124,6 +123,7 @@ class LiveMeeting(val mProps: MeetingProperties, outGW.send(new MeetingEnded(msg.meetingId, mProps.recorded, mProps.voiceBridge)) // Delay sending DisconnectAllUsers because of RTMPT connection being dropped before UserEject message arrives to the client + import context.dispatcher context.system.scheduler.scheduleOnce(Duration.create(2500, TimeUnit.MILLISECONDS)) { log.info("Sending delayed DisconnectUser. meetingId={}", mProps.meetingID) outGW.send(new DisconnectAllUsers(msg.meetingId))