From 248be9256a1594046852da1967c97e2807a3670c Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Fri, 1 Mar 2019 10:59:58 +0100 Subject: [PATCH] Fix: File descriptor not closed --- lib/store.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/store.js b/lib/store.js index 724ee2a..2c93335 100644 --- a/lib/store.js +++ b/lib/store.js @@ -83,12 +83,6 @@ class Store { return resolve({ offset: info.offset, upload: info }); }); ws.on('error', reject); - // End writeStream on connection abort and wait for drain - readStream.on('close', () => { - ws.on('drain', () => { - ws.end(); - }); - }); }); readStream.pipe(uploadSize).pipe(ws);