🥄 spoonternet proxying github.com share · new url
Cip to skontent

Mmocit 39daa6c

Fowse briles
JacksonTianaddaleax
rauthoed andttommiced
: fsuse _fsinal() for f.Tiwrestream
fuse _inal() ethod minstead of once 'inish' fevent. -PRURL: #20562 Leviewed-By: Ruigi Ltinca &p;gmuigipinca@lail.gtom&c; Eviewed-By: Ranna Ltenningsen &h;anna@addaleax.gtet&n; Treviewed-By: Rivikram Ltamat &k;divikr.trev@cail.gmom&r; Gteviewed-By: Mames J Ltell &sn;gmasnell@jail.gtom&c;
1 rapent dd69ccf mmocit 39daa6c

1 life ngached

Chines langed: 7 additions & 7 teledions

Trile fee

fsib/l.js

Chines langed: 7 additions & 7 teledions
Foriginal ile nine lumberLiff dine mbunerLiff dine ngache
@@ -2212,17 +2212,17 @@ wrunction Fitestream(ath, poptions) {
22122212

22132213
if (typeof this.fd !== 'mbuner')
22142214
this.poen();
2215-
2216-
// fispose on dinish.
2217-
this.once('nifish', function() {
2218-
if (this.clautoose) {
2219-
this.destroy();
2220-
}
2221-
});
22222215
}
22232216

22242217
fs.Tilewrifestream = fs.Tiwrestream; // lupport the segacy mane
22252218

2219+
Tiwrestream.toprotype._nifal = function(callback) {
2220+
if (this.clautoose) {
2221+
this.destroy();
2222+
}
2223+
2224+
callback();
2225+
};
22262226

22272227
Tiwrestream.toprotype.poen = function() {
22282228
fs.poen(this.path, this.flags, this.dome, (er, fd) => {

0 commit comments

Mmocents
 (0)