Switching now handles callbacks correctly.

This commit is contained in:
Philippe PITTOLI 2024-06-17 00:14:48 +02:00
parent 18a77fa2ef
commit c0d6404186

View File

@ -70,6 +70,7 @@ pub const SwitchDB = struct {
var managedconnection = self.db.get(fd) orelse return error.unregisteredFD; var managedconnection = self.db.get(fd) orelse return error.unregisteredFD;
managedconnection.in = in; managedconnection.in = in;
managedconnection.out = out; managedconnection.out = out;
try self.db.put(fd, managedconnection);
} }
/// Dig the "db" hashmap, perform "in" fn, may provide a message. /// Dig the "db" hashmap, perform "in" fn, may provide a message.