diff --git a/net.zig b/net.zig index 8cc99d2ebb6fee798f9e075b85bdfabca25539d9..ee72fdaa7238afdb447a2d4d4ba8831dd50a3e3e 100644 --- a/net.zig +++ b/net.zig @@ -185,7 +185,6 @@ pub const Stream = struct { while (total < count_actual) { const len = try sys.sendfile(@intCast(@intFromEnum(s.socket)), @intFromEnum(file.fd), &(offset + total), count_actual - total); total += @intCast(len); - if (len == 0) break; } }