This commit is contained in:
Nikolay Kim 2025-03-27 13:51:34 +01:00
parent 4a94400969
commit 0376561547

View file

@ -203,12 +203,14 @@ impl Accept {
}
}
println!("------- ACCEPTING");
for event in events.iter() {
println!("------- ACCEPTED {:?}", event);
let readd = self.accept(event.key);
println!("------- ACCEPTING: {:?}", events.len());
for idx in 0..self.sockets.len() {
if !self.sockets[idx].registered.get() {
continue;
}
let readd = self.accept(idx);
if readd {
self.add_source(event.key);
self.add_source(idx);
}
}