Skip to content
Snippets Groups Projects
Commit 98ad9289 authored by Ramon Souza's avatar Ramon Souza
Browse files

add inline comment

parent ab8cfe51
No related branches found
No related tags found
No related merge requests found
......@@ -43,11 +43,19 @@ export default function removeUser(meetingId, userId) {
clearUserInfoForRequester(meetingId, userId);
/*
Timeout added to reduce the probability that "userRemove" happens too close to "ejectUser",
redirecting user to the wrong component.
This is a workaround and should be removed as soon as a better fix is made
see: https://github.com/bigbluebutton/bigbluebutton/pull/12057
*/
const DELAY_USER_REMOVAL_TIMEOUT_MS = 1000;
Meteor.wrapAsync((callback) => {
Meteor.setTimeout(() => {
Users.remove(selector);
callback();
}, 1000);
}, DELAY_USER_REMOVAL_TIMEOUT_MS);
})();
Logger.info(`Removed user id=${userId} meeting=${meetingId}`);
......
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