don't unpipe on local close

Pipe will do this for us
This commit is contained in:
Roman Shtylman
2013-12-31 17:33:49 -05:00
parent f1d809a84d
commit 4f4a147b45

View File

@@ -98,9 +98,6 @@ TunnelCluster.prototype.open = function() {
// when local closes, also get a new remote
local.once('close', function(had_error) {
remote.unpipe();
local.unpipe();
remote.end();
debug('local connection closed [%s]', had_error);
});
});