From 2f15d1c0fa55f3fd7de19fae1f54eaba800ad564 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Wed, 2 Oct 2013 22:54:46 +0400 Subject: [PATCH] fd leak --- lib/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage.js b/lib/storage.js index aa3edb68a..286b6efd4 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -258,12 +258,12 @@ Storage.prototype.get_tarball = function(name, filename) { var savestream = self.local.add_tarball(name, filename); savestream.on('error', function(err) { - savestream.abort(); stream.emit('error', err); }); savestream.on('open', function() { var rstream2 = uplink.get_url(file.url); rstream2.on('error', function(err) { + savestream.abort(); stream.emit('error', err); });