diff --git a/src/io/PipeReader.zig b/src/io/PipeReader.zig index 6d20fd616e..31609a8998 100644 --- a/src/io/PipeReader.zig +++ b/src/io/PipeReader.zig @@ -408,8 +408,8 @@ pub fn WindowsPipeReader( } pub fn close(this: *This) void { - this.stopReading().unwrap() catch unreachable; const pipe = this._pipe() orelse return; + this.stopReading().unwrap() catch unreachable; pipe.close(&onClosePipe); } };