From c7646eb699e194a7c692b95b49adc76d6d3295ea Mon Sep 17 00:00:00 2001 From: kbleeke Date: Mon, 27 Mar 2023 12:40:40 +0200 Subject: [PATCH] bring back TODO note about dropping ioctls --- src/control.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/control.rs b/src/control.rs index 98f678fb..f15a3d3f 100644 --- a/src/control.rs +++ b/src/control.rs @@ -273,6 +273,8 @@ impl<'a> Control<'a> { } async fn ioctl(&mut self, kind: IoctlType, cmd: u32, iface: u32, buf: &mut [u8]) -> usize { + // TODO cancel ioctl on future drop. + self.ioctl_state.do_ioctl(kind, cmd, iface, buf).await; let resp_len = self.ioctl_state.wait_complete().await; resp_len