Open lperrin opened 11 years ago
Near line 178, this code doesn't set cbFired to true:
onError = function(reason) { if (!cbFired && typeof cb === 'function') { cb(new Error(reason)); } }, onClose = function() { if (!cbFired && typeof cb === 'function') { cb(); } },
If a TCP error occurs, the callback is called twice.
@lperrin I just made you a contributor on github, feel free to push your suggested fix!
I'll do that, thanks :)
Near line 178, this code doesn't set cbFired to true:
If a TCP error occurs, the callback is called twice.