mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-18 06:54:15 +00:00
early return if no socket connected
This commit is contained in:
parent
b88c18b46a
commit
9ad8b33057
@ -102,6 +102,9 @@ export default class LiveChat extends React.Component {
|
||||
}
|
||||
|
||||
leaveSocketRoom = () => {
|
||||
if (!this.socket) {
|
||||
return false
|
||||
}
|
||||
if (this.state.connectionEnd) {
|
||||
return false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user