diff --git a/bigbluebutton-html5/imports/api/users/server/handlers/validateAuthToken.js b/bigbluebutton-html5/imports/api/users/server/handlers/validateAuthToken.js index 5831b5e1304f710c795356fde3c70c45b30f2121..9fa3c6ca1c25abe088d0eca000b8cb6c561ecd96 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);