Remove racey condition

joining might become false before we get the room down the sync
pull/21833/head
Luke Barnard 2017-06-14 17:13:13 +01:00
parent ed5f01d46f
commit 58554cce53
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ module.exports = React.createClass({
},
onRoom: function(room) {
if (!room || room.roomId !== this.state.roomId || !this.state.joining) {
if (!room || room.roomId !== this.state.roomId) {
return;
}
this.setState({