diff --git a/src/host/wasapi/stream.rs b/src/host/wasapi/stream.rs index 8e2429e..a72f244 100644 --- a/src/host/wasapi/stream.rs +++ b/src/host/wasapi/stream.rs @@ -141,8 +141,8 @@ impl Stream { #[inline] fn push_command(&self, command: Command) { - // Safe to unwrap: sender outlives receiver. - self.commands.send(command).unwrap(); + // Sender generally outlives receiver, unless the device gets unplugged. + let _ = self.commands.send(command); unsafe { let result = synchapi::SetEvent(self.pending_scheduled_event); assert_ne!(result, 0);