Skip to content

Commit

Permalink
Merge pull request Superalgos#5136 from Awhiteweb/feature/undefined-s…
Browse files Browse the repository at this point in the history
…ocket-patch

added undefined check for disconnect websockets
  • Loading branch information
BastianMuc authored May 2, 2024
2 parents 9a2f702 + 3c81837 commit b3950fc
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 b3950fc

Please sign in to comment.