diff --git a/playback/src/resampler.rs b/playback/src/resampler.rs index a087d2fc..560ffea5 100644 --- a/playback/src/resampler.rs +++ b/playback/src/resampler.rs @@ -288,6 +288,14 @@ impl ResampleWorker { .ok(); } ResampleTask::Terminate => { + loop { + let drained = task_receiver.recv().ok(); + + if drained.is_none() { + break; + } + } + match thread::current().name() { Some(name) => debug!(" [{name}] thread finished"), None => debug!(" thread finished"),