Skip to content

Commit 58e8a8e

Browse files
wisp3rwindpaulfariello
authored andcommitted
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
1 parent 3ec43ad commit 58e8a8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connect/src/spirc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ const VOLUME_UPDATE_DELAY: Duration = Duration::from_millis(500);
139139
const UPDATE_STATE_DELAY: Duration = Duration::from_millis(200);
140140

141141
/// The spotify connect handle
142+
#[derive(Clone)]
142143
pub struct Spirc {
143144
commands: mpsc::UnboundedSender<SpircCommand>,
144145
}

0 commit comments

Comments
 (0)