Fix reconnection

Was failing to reconnect due to trying to reuse the same socket that
already had a BPF filter on it.
This commit is contained in:
2026-01-24 19:19:00 -05:00
parent c3b17f8267
commit 09152377ed
5 changed files with 20 additions and 15 deletions

View File

@@ -57,7 +57,6 @@ export fn zaprus_connect(
export fn zaprus_deinit_connection(connection: ?*ZaprusConnection) void {
const c: ?*zaprus.Connection = @ptrCast(@alignCast(connection));
if (c) |zc| {
zc.deinit();
alloc.destroy(zc);
}
}