From 80e6b168ea0c512575aaa0ab2afe8e9e32e125ed Mon Sep 17 00:00:00 2001 From: Anton Georgiev <anto.georgiev@gmail.com> Date: Sat, 9 May 2020 09:52:16 -0400 Subject: [PATCH] use Meteor setTimeout to run within Fiber --- .../imports/api/users/server/handlers/validateAuthToken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/api/users/server/handlers/validateAuthToken.js b/bigbluebutton-html5/imports/api/users/server/handlers/validateAuthToken.js index 5831b5e130..9fa3c6ca1c 100644 --- a/bigbluebutton-html5/imports/api/users/server/handlers/validateAuthToken.js +++ b/bigbluebutton-html5/imports/api/users/server/handlers/validateAuthToken.js @@ -32,7 +32,7 @@ export default function handleValidateAuthToken({ body }, meetingId) { const connectionId = methodInvocationObject.connection.id; // Schedule socket disconnection for this user, giving some time for client receiving the reason of disconnection - setTimeout(()=>{ + Meteor.setTimeout(()=>{ methodInvocationObject.connection.close(); }, 2000); -- GitLab