We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 313354a commit 8184010Copy full SHA for 8184010
2 files changed
src/host/alsa/mod.rs
@@ -1204,7 +1204,9 @@ impl Drop for Stream {
1204
fn drop(&mut self) {
1205
self.inner.dropping.store(true, Ordering::Release);
1206
self.trigger.wakeup();
1207
- self.thread.take().unwrap().join().unwrap();
+ if let Some(handle) = self.thread.take() {
1208
+ let _ = handle.join();
1209
+ }
1210
}
1211
1212
src/host/wasapi/stream.rs
@@ -178,7 +178,9 @@ impl Stream {
178
impl Drop for Stream {
179
180
if self.push_command(Command::Terminate).is_ok() {
181
182
183
184
unsafe {
185
let _ = Foundation::CloseHandle(self.pending_scheduled_event);
186
0 commit comments