Fix: File descriptor not closed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user