Skip to content

Instantly share code, notes, and snippets.

@sax1johno
Created October 17, 2016 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sax1johno/9aac38bc45b67007425150cafd31e8dc to your computer and use it in GitHub Desktop.
Save sax1johno/9aac38bc45b67007425150cafd31e8dc to your computer and use it in GitHub Desktop.
// LINE 160 of seneca-transport/lib/tcp.js
reconnect.on('disconnect', function (err) {
seneca.log.debug('client', type, 'disconnect', spec, topic, clientOptions,
(err && err.stack) || err)
_.find(connections, { clientOptions: clientOptions }).setup = false // This code fails. Wrapping an "undefined" guard around _.find fixes the issue.
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment