From c0d6404186d9b4e50068cdf78bbd338512205d8b Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Mon, 17 Jun 2024 00:14:48 +0200 Subject: [PATCH] Switching now handles callbacks correctly. --- src/switch.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch.zig b/src/switch.zig index 6cdf4e0..ec5a78a 100644 --- a/src/switch.zig +++ b/src/switch.zig @@ -70,6 +70,7 @@ pub const SwitchDB = struct { var managedconnection = self.db.get(fd) orelse return error.unregisteredFD; managedconnection.in = in; managedconnection.out = out; + try self.db.put(fd, managedconnection); } /// Dig the "db" hashmap, perform "in" fn, may provide a message.