early return if no socket connected

This commit is contained in:
SrGooglo 2025-06-16 20:42:15 +00:00
parent b88c18b46a
commit 9ad8b33057

View File

@ -102,6 +102,9 @@ export default class LiveChat extends React.Component {
} }
leaveSocketRoom = () => { leaveSocketRoom = () => {
if (!this.socket) {
return false
}
if (this.state.connectionEnd) { if (this.state.connectionEnd) {
return false return false
} }