From c8badf87b769ba0d5d74d199ac9fa07681be0e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Monnom?= Date: Mon, 4 Sep 2023 16:30:37 -0700 Subject: [PATCH] fix: no tokio-reactor on ffi audio capture (#172) --- livekit-ffi/src/server/audio_source.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livekit-ffi/src/server/audio_source.rs b/livekit-ffi/src/server/audio_source.rs index 681d1299..8f9fa79e 100644 --- a/livekit-ffi/src/server/audio_source.rs +++ b/livekit-ffi/src/server/audio_source.rs @@ -79,7 +79,7 @@ impl FfiAudioSource { let source = self.source.clone(); let async_id = server.next_id(); - tokio::spawn(async move { + server.async_runtime.spawn(async move { // The data must be available as long as the client receive the callback. let data = unsafe { let len = buffer.num_channels * buffer.samples_per_channel;