Increase time allowed for reconnection

This commit is contained in:
Tiago Jacobs 2021-10-20 15:24:32 -03:00 committed by GitHub
parent a8dac575d5
commit 57c1ea332a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ object Users2x {
def findAllExpiredUserLeftFlags(users: Users2x, meetingExpireWhenLastUserLeftInMs: Long): Vector[UserState] = {
if (meetingExpireWhenLastUserLeftInMs > 0) {
users.toVector filter (u => u.userLeftFlag.left && u.userLeftFlag.leftOn != 0 &&
System.currentTimeMillis() - u.userLeftFlag.leftOn > 1000)
System.currentTimeMillis() - u.userLeftFlag.leftOn > 30000)
} else {
// When meetingExpireWhenLastUserLeftInMs is set zero we need to
// remove user right away to end the meeting as soon as possible.