mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-11-01 05:09:10 +00:00
don't unpipe on local close
Pipe will do this for us
This commit is contained in:
1 parent
f1d809a84d
commit
4f4a147b45
1 file changed
-3
@@ -98,9 +98,6 @@ TunnelCluster.prototype.open = function() {
|
|||||||
|
|
||||||
// when local closes, also get a new remote
|
// when local closes, also get a new remote
|
||||||
local.once('close', function(had_error) {
|
local.once('close', function(had_error) {
|
||||||
remote.unpipe();
|
|
||||||
local.unpipe();
|
|
||||||
remote.end();
|
|
||||||
debug('local connection closed [%s]', had_error);
|
debug('local connection closed [%s]', had_error);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user