mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 21:07:39 +03:00
wip
This commit is contained in:
parent
8f45ad2db3
commit
4bc5f49b00
1 changed files with 0 additions and 3 deletions
|
@ -362,17 +362,14 @@ impl Driver {
|
|||
let renew_event = item.event(fd as usize);
|
||||
|
||||
if !renew_event.readable && !renew_event.writable {
|
||||
// crate::log(format!("DELETE - {:?}", fd.as_raw_fd()));
|
||||
registry.remove(&fd);
|
||||
if !new {
|
||||
self.poll.delete(BorrowedFd::borrow_raw(fd))?;
|
||||
}
|
||||
} else if new {
|
||||
item.flags.remove(Flags::NEW);
|
||||
// crate::log(format!("ADD - {:?}", fd.as_raw_fd()));
|
||||
unsafe { self.poll.add(fd, renew_event)? };
|
||||
} else {
|
||||
// crate::log(format!("MODIFY - {:?} {:?}", fd.as_raw_fd(), renew_event));
|
||||
self.poll.modify(BorrowedFd::borrow_raw(fd), renew_event)?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue