mirror of
https://git.robbyzambito.me/zaprus/
synced 2026-02-04 11:44:49 +00:00
Add real RawSocket deinit
This commit is contained in:
@@ -355,7 +355,8 @@ const RawSocket = struct {
|
||||
}
|
||||
|
||||
fn deinit(self: *RawSocket) void {
|
||||
_ = self;
|
||||
_ = std.os.linux.close(self.fd);
|
||||
self.* = undefined;
|
||||
}
|
||||
|
||||
fn send(self: RawSocket, payload: []const u8) !void {
|
||||
|
||||
Reference in New Issue
Block a user