mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
fix input capture test
This commit is contained in:
@@ -106,7 +106,7 @@ pub trait InputCapture:
|
||||
/// release mouse
|
||||
async fn release(&mut self) -> Result<(), CaptureError>;
|
||||
|
||||
/// destroy the input acpture
|
||||
/// destroy the input capture
|
||||
async fn terminate(&mut self) -> Result<(), CaptureError>;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ async fn input_capture_test(config: Config) -> Result<()> {
|
||||
input_capture.create(3, Position::Bottom).await?;
|
||||
if let Err(e) = do_capture(&mut input_capture).await {
|
||||
log::warn!("{e} - recreating capture");
|
||||
let _ = input_capture.terminate().await;
|
||||
}
|
||||
let _ = input_capture.terminate().await;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user