From 684aa6392a33d49005272e75eb5018c053162aea Mon Sep 17 00:00:00 2001 From: "Richard Dodd (dodj)" Date: Sun, 4 Aug 2019 11:49:15 +0100 Subject: [PATCH] Update mod.rs Fixes #309 --- src/host/alsa/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/host/alsa/mod.rs b/src/host/alsa/mod.rs index ac68914..d39aaf3 100644 --- a/src/host/alsa/mod.rs +++ b/src/host/alsa/mod.rs @@ -801,7 +801,7 @@ impl EventLoop { let new_stream_id = StreamId(self.next_stream_id.fetch_add(1, Ordering::Relaxed)); if new_stream_id.0 == usize::max_value() { - return Err(BuildStreamError::StreamIdOverflow); + panic!("number of streams used has overflowed usize"); } let stream_inner = StreamInner {