| ... | @@ -178,7 +178,7 @@ pub const Stream = struct { | ... | @@ -178,7 +178,7 @@ pub const Stream = struct { |
| 178 | | 178 | |
| 179 | // Resource allocation may fail; resource deallocation must succeed. | 179 | // Resource allocation may fail; resource deallocation must succeed. |
| 180 | pub fn close(s: Stream) void { | 180 | pub fn close(s: Stream) void { |
| 181 | sys.close(@intCast(@intFromEnum(s.socket))) catch {}; | 181 | sys.close(@intCast(@intFromEnum(s.socket))) catch if (builtin.mode == .Debug) unreachable; |
| 182 | } | 182 | } |
| 183 | | 183 | |
| 184 | pub fn shutdown(s: Stream, how: sys.SHUT) !void { | 184 | pub fn shutdown(s: Stream, how: sys.SHUT) !void { |