chore: 完善。
This commit is contained in:
@ -123,6 +123,7 @@ impl DisplayManager {
|
||||
impl Drop for DisplayManager {
|
||||
fn drop(&mut self) {
|
||||
if let Some(handler) = self.setting_request_handler.take() {
|
||||
info!("abort display setting request handler");
|
||||
handler.abort();
|
||||
}
|
||||
}
|
||||
|
@ -64,6 +64,9 @@ impl Board {
|
||||
}
|
||||
} else if buf[0] == 4 {
|
||||
let result = volume_setting_request_sender.send(buf[1] as f32 / 100.0);
|
||||
if let Err(err) = result {
|
||||
error!("send volume setting request to channel failed: {:?}", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(ref e) if e.kind() == io::ErrorKind::WouldBlock => {
|
||||
|
Reference in New Issue
Block a user