Skip to content

Commit fdd7698

Browse files
committed
multiple socket connecting bug fixed
1 parent 53981a9 commit fdd7698

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/js/views/components/ChoosingPage.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ class ChoosingPage extends React.Component{
5050
})
5151
}
5252

53+
if(this.state.loadingShow){
54+
// Being created
55+
return;
56+
}
57+
5358
this.setState({
5459
loadingShow: true
5560
})
@@ -113,6 +118,11 @@ class ChoosingPage extends React.Component{
113118
return;
114119
}
115120

121+
if(this.state.loadingShow){
122+
// Being connected
123+
return;
124+
}
125+
116126
this.setState({
117127
loadingShow: true
118128
})

0 commit comments

Comments
 (0)