From 949a886f6215c79c2a0f92dfb91d6dc635e31d31 Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:17:57 +0200 Subject: [PATCH] Allow cloning SPIRC - which is just a tokio::sync::mpsc sender, so this should be safe - prep for MPRIS support, which will use this to control playback --- connect/src/spirc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/connect/src/spirc.rs b/connect/src/spirc.rs index c3942651..9b512f92 100644 --- a/connect/src/spirc.rs +++ b/connect/src/spirc.rs @@ -160,6 +160,7 @@ const CONTEXT_FETCH_THRESHOLD: u32 = 5; const VOLUME_STEPS: i64 = 64; const VOLUME_STEP_SIZE: u16 = 1024; // (u16::MAX + 1) / VOLUME_STEPS +#[derive(Clone)] pub struct Spirc { commands: mpsc::UnboundedSender, }