We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5bfd5 commit 946df96Copy full SHA for 946df96
sw/host/opentitanlib/src/transport/qemu/usbdev.rs
@@ -899,7 +899,12 @@ impl QemuHostThread {
899
if let Err(res) =
900
Self::host_qemu_reader_thread(usbdev_for_reader, channel_send_for_reader)
901
{
902
- log::error!("QEMU reader failed with error: {res:?}");
+ // Ignore errors coming for the mpsc channel because they indicate that
903
+ // the host thread shut down and the reader couldn't send a message.
904
+ match res.downcast::<mpsc::SendError<HostChannelEvent>>() {
905
+ Ok(_) => (),
906
+ Err(err) => log::error!("QEMU reader failed with error: {err:?}"),
907
+ }
908
}
909
});
910
0 commit comments