diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2024-04-02 22:40:59 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2024-04-02 22:40:59 +0200 |
commit | 89e193c1ab8184f74b2b40f3822e544d5e0d5163 (patch) | |
tree | dae862e629bd499c3d7f344ebeab938781e913a6 /crates/driver/src/driver.rs | |
parent | 1e8875b6437f3b3a1505e25dde8e352d232b09fa (diff) | |
download | rebel-89e193c1ab8184f74b2b40f3822e544d5e0d5163.tar rebel-89e193c1ab8184f74b2b40f3822e544d5e0d5163.zip |
Update dependencies
Diffstat (limited to 'crates/driver/src/driver.rs')
-rw-r--r-- | crates/driver/src/driver.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/driver/src/driver.rs b/crates/driver/src/driver.rs index d0abbcb..8acf50a 100644 --- a/crates/driver/src/driver.rs +++ b/crates/driver/src/driver.rs @@ -352,10 +352,10 @@ impl<'ctx> Driver<'ctx> { let mut pollfds: Vec<_> = self .tasks_running .values() - .map(|(socket, _)| poll::PollFd::new(socket, poll::PollFlags::POLLIN)) + .map(|(socket, _)| poll::PollFd::new(socket.as_fd(), poll::PollFlags::POLLIN)) .collect(); - while poll::poll(&mut pollfds, -1).context("poll()")? == 0 {} + while poll::poll(&mut pollfds, poll::PollTimeout::NONE).context("poll()")? == 0 {} let pollevents: Vec<_> = pollfds .into_iter() |