Closed calibermind closed 5 years ago
When the connection is empty, the .find will return undefined therefore the following will cause a crash: .find(connections, { clientOptions: clientOptions }).setup = false
this is line 161 seneca-transport/lib/tcp.js.
one solution is -
if (connections.length !== 0 ){ _.find(connections, { clientOptions: clientOptions }).setup = false }
This issue refers to #144
When the connection is empty, the .find will return undefined therefore the following will cause a crash: .find(connections, { clientOptions: clientOptions }).setup = false
this is line 161 seneca-transport/lib/tcp.js.
one solution is -
if (connections.length !== 0 ){ _.find(connections, { clientOptions: clientOptions }).setup = false }