Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-07-23 15:07:36 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-08-28 11:28:30 +0300
commitf56ab8fe9083955b7b4d2910a3108b3aeb6d1a52 (patch)
treec276fa57f7bd241b49b3b7b3c768389f86018be4 /lib/Room.php
parent18336c0b10712d76a732a10a5c0397b49e9fd4ba (diff)
Prevent nested calls between setLobby and getLobbyState when the timer was reached
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Room.php')
-rw-r--r--lib/Room.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Room.php b/lib/Room.php
index 79c9b2bb5..45f483158 100644
--- a/lib/Room.php
+++ b/lib/Room.php
@@ -530,7 +530,7 @@ class Room {
* @return bool True when the change was valid, false otherwise
*/
public function setLobby(int $newState, ?\DateTime $dateTime): bool {
- $oldState = $this->getLobbyState();
+ $oldState = $this->lobbyState;
if (!in_array($this->getType(), [self::GROUP_CALL, self::PUBLIC_CALL], true)) {
return false;