Skip to content

Commit

Permalink
Check Added to avoid undhandled excelption
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis-Fernando-Molina committed Oct 5, 2022
1 parent 08b7299 commit 4ea93be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Projects/Network/SA/Modules/P2PNetworkClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ exports.newNetworkModulesP2PNetworkClient = function newNetworkModulesP2PNetwork
Remember that p2pNetworkClientNode is undefined when this is run from a Network Node, not a Task Server.
*/
if (p2pNetworkClientNode === undefined || p2pNetworkClientNode.networkServices.tradingSignals !== undefined) {
if (p2pNetworkClientNode === undefined || (p2pNetworkClientNode.networkServices.tradingSignals !== undefined && thisObject.p2pNetworkStart !== undefined)) {
thisObject.tradingSignalsNetworkServiceClient = SA.projects.tradingSignals.modules.tradingSignalsNetworkServiceClient.newTradingSignalsModulesTradingSignalsNetworkServiceClient()
await thisObject.tradingSignalsNetworkServiceClient.initialize(
userAppSigningAccountCodeName,
Expand Down

0 comments on commit 4ea93be

Please sign in to comment.