| author | |
| committer | |
| log | 17c1852b9fb3043110f1d5d75dc1a08124440e89 |
| tree | a2479a4a33133a14ef3f03335294f820c756bc12 |
| parent | 2f4616052da1e59ed4e88b61d246714ea79b09b5 |
| signature | Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw |
1 files changed, 1 insertions(+), 1 deletions(-)
net.zig+1-1| ... | ... | @@ -178,7 +178,7 @@ pub const Stream = struct { |
| 178 | 178 | |
| 179 | 179 | // Resource allocation may fail; resource deallocation must succeed. |
| 180 | 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 | 184 | pub fn shutdown(s: Stream, how: sys.SHUT) !void { |