mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-11 20:11:29 +03:00
update dependencies (#302)
* update dependencies * update windows * clippy: inline format args * update flake * update core-graphics * fix poll after completion error * fix ashpd?!
This commit is contained in:
committed by
GitHub
parent
9f10ebcbd2
commit
eb1dcbddb0
@@ -587,9 +587,13 @@ impl LanMouseInputCapture for LibeiInputCapture<'_> {
|
||||
self.cancellation_token.cancel();
|
||||
let task = &mut self.capture_task;
|
||||
log::debug!("waiting for capture to terminate...");
|
||||
let res = task.await.expect("libei task panic");
|
||||
log::debug!("done!");
|
||||
let res = if !task.is_finished() {
|
||||
task.await.expect("libei task panic")
|
||||
} else {
|
||||
Ok(())
|
||||
};
|
||||
self.terminated = true;
|
||||
log::debug!("done!");
|
||||
res
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user