From d2b98235c4cb598c807981ef39a2abd8980f6064 Mon Sep 17 00:00:00 2001 From: Leticia Choo Date: Tue, 19 Jan 2016 19:15:22 +0800 Subject: [PATCH] Fixes for lock room causing issues sometimes. --- source/jsx/main.jsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/jsx/main.jsx b/source/jsx/main.jsx index 2d01000..1b98e87 100644 --- a/source/jsx/main.jsx +++ b/source/jsx/main.jsx @@ -132,6 +132,13 @@ define([ }); } + if(self.state.users.length === Configs.maxUsers) { + Skylink.lockRoom(); + } + else if(self.state.users.length >= 2) { + state.controls = false; + } + self.setState(state); }); @@ -146,13 +153,6 @@ define([ }) }; - if(self.state.users.length === Configs.maxUsers) { - Skylink.lockRoom(); - } - else if(self.state.users.length >= 2) { - state.controls = false; - } - self.setState(state); });