Permalink
Browse files

logs

  • Loading branch information...
1 parent 78739e5 commit a1529533ff80dddbd85e903c6c56ee16059d1c40 @soldair committed Feb 13, 2014
Showing with 0 additions and 2 deletions.
  1. +0 −2 index.js
View
@@ -156,15 +156,13 @@ module.exports.timeout = 5000;
module.exports.tcpCheck = function(info,cb){
var called = false;
var s = net.connect({host:info.host,port:info.port},function(){
- console.log('connected> ',arguments);
if(!called) {
called = true;
cb(false,true);
s.destroy();
}
});
s.on('error',function(e){
- console.log('error> ',arguments);
if(!called) {
called = true;
cb(err);

0 comments on commit a152953

Please sign in to comment.