mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 18:30:53 +00:00
Use autodestroy on Transform stream
This commit is contained in:
parent
82599bce67
commit
7e45a82c35
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ const pipeline = promisify(Stream.pipeline)
|
|||
// the number of bytes transferred
|
||||
class ObserverStream extends Stream.Transform {
|
||||
constructor(options) {
|
||||
options.autoDestroy = true
|
||||
super(options)
|
||||
|
||||
this.bytes = 0
|
||||
|
|
Loading…
Reference in a new issue