diff --git a/vhost-device-sound/src/device.rs b/vhost-device-sound/src/device.rs index 818b192..0c6db4d 100644 --- a/vhost-device-sound/src/device.rs +++ b/vhost-device-sound/src/device.rs @@ -468,12 +468,16 @@ impl VhostUserSoundThread { match direction { Direction::Output => { for id in stream_ids { - b.write(id).unwrap(); + if let Err(e) = b.write(id) { + log::warn!("Stream {id} write error in non-started state: {e}"); + } } } Direction::Input => { for id in stream_ids { - b.read(id).unwrap(); + if let Err(e) = b.read(id) { + log::warn!("Stream {id} read error in non-started state: {e}"); + } } } }