diff options
author | Joas Schilling <coding@schilljs.com> | 2021-09-30 15:44:02 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-09-30 15:44:02 +0300 |
commit | 87f4557eab3fad901d6d75a3b02afd2174fea40f (patch) | |
tree | 0786513496285de636ce532678459091281d67c3 /lib/Service | |
parent | b1e9bac7df004ade410fc9291cfc3961575e4e8e (diff) |
Only "active" sessions can keep the call alive
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/ParticipantService.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 15276a6af..6019c8cbf 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -1237,6 +1237,7 @@ class ParticipantService { ->where($query->expr()->eq('a.room_id', $query->createNamedParameter($room->getId(), IQueryBuilder::PARAM_INT))) ->andWhere($query->expr()->isNotNull('s.in_call')) ->andWhere($query->expr()->neq('s.in_call', $query->createNamedParameter(Participant::FLAG_DISCONNECTED))) + ->andWhere($query->expr()->gte('s.last_ping', $query->createNamedParameter($this->timeFactory->getTime() - Session::SESSION_TIMEOUT, IQueryBuilder::PARAM_INT))) ->setMaxResults(1); $result = $query->execute(); $row = $result->fetch(); |