Skip to content

Commit

Permalink
updating tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsu committed Oct 23, 2012
1 parent 2b95fe3 commit 87e6b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/strategies/tcp.ms
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ module.exports = #(options) {

socket.connect(port, host, #{
if (!returned) cb();
socket.destroy();
socket.end();
});

socket.on('error', #{
returned = true;
socket.destroy();
cb('error');
});
};
Expand Down

0 comments on commit 87e6b9d

Please sign in to comment.