fix windows/mac + rename async_drop to terminate

This commit is contained in:
Ferdinand Schober
2024-07-10 22:33:37 +02:00
parent ebf7897caa
commit ae3ea2c497
9 changed files with 26 additions and 13 deletions

View File

@@ -668,7 +668,7 @@ impl<'a> LanMouseInputCapture for LibeiInputCapture<'a> {
Ok(())
}
async fn async_drop(&mut self) -> Result<(), CaptureError> {
async fn terminate(&mut self) -> Result<(), CaptureError> {
let event_rx = self.event_rx.take().expect("no channel");
std::mem::drop(event_rx);
self.cancellation_token.cancel();