From f71a95cd0e1b9356bdc30d83c203b168ab1ba214 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sat, 1 Oct 2016 18:19:27 +1000 Subject: [PATCH] Do not lock inner twice. Fixes bug in osx futures 0.1.1 update. --- src/coreaudio/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreaudio/mod.rs b/src/coreaudio/mod.rs index 9692e72..292e03c 100644 --- a/src/coreaudio/mod.rs +++ b/src/coreaudio/mod.rs @@ -114,7 +114,7 @@ impl Stream for SamplesStream { let current_callback = match inner.current_callback.take() { Some(c) => c, None => { - self.inner.lock().unwrap().scheduled_task = Some(task::park()); + inner.scheduled_task = Some(task::park()); return Ok(Async::NotReady); } };