Skip to content

Commit

Permalink
added undefined check for disconnect websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
Awhiteweb committed May 2, 2024
1 parent 9a2f702 commit 3c81837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Projects/Network/SA/Modules/WebSocketsNetworkClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ exports.newNetworkModulesWebSocketsNetworkClient = function newNetworkModulesWeb
}

clearTimeout(socket.pingTimeout)
if (thisObject.socketNetworkClients.isConnected === true) {
if (thisObject.socketNetworkClients !== undefined && thisObject.socketNetworkClients.isConnected === true) {
SA.logger.info('')
SA.logger.info('Websockets Client Disconnected from Network Node via Web Sockets ............. Disconnected from ' + connectionInfo())
SA.logger.info('')
Expand Down

0 comments on commit 3c81837

Please sign in to comment.