Permalink
Browse files

updating tcp

  • Loading branch information...
1 parent 2b95fe3 commit 87e6b9d7653e2fdbd5426d77bc3cb793140afa8d @jeffsu committed Oct 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/strategies/tcp.ms
View
@@ -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');
});
};

0 comments on commit 87e6b9d

Please sign in to comment.