diff options
author | 2022-12-03 08:25:58 -0800 | |
---|---|---|
committer | 2022-12-03 08:26:53 -0800 | |
commit | 201cbb20e41a0997e56a0cf2fca4096d7392c14a (patch) | |
tree | 7d91edc3feb3de01c36b5ef449ff19f49785d6f6 | |
parent | 8c51db08798892f53387cd6797998d29209127a4 (diff) | |
download | bun-201cbb20e41a0997e56a0cf2fca4096d7392c14a.tar.gz bun-201cbb20e41a0997e56a0cf2fca4096d7392c14a.tar.zst bun-201cbb20e41a0997e56a0cf2fca4096d7392c14a.zip |
Don't invalidate previous file descriptro to avoid tripping assertion
-rw-r--r-- | src/bun.js/webcore/streams.zig | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig index a7f90a0e6..801fb4741 100644 --- a/src/bun.js/webcore/streams.zig +++ b/src/bun.js/webcore/streams.zig @@ -1196,11 +1196,6 @@ pub const FileSink = struct { } pub fn start(this: *FileSink, stream_start: StreamStart) JSC.Node.Maybe(void) { - if (this.fd != bun.invalid_fd) { - _ = JSC.Node.Syscall.close(this.fd); - this.fd = bun.invalid_fd; - } - this.done = false; this.written = 0; this.auto_close = false; |