Made join command defer (timeout protection), fixed paused track bug

This commit is contained in:
DaXcess committed 2022-11-05 15:53:42 +01:00
1 parent f3dff49c06
commit 877f758172
4 files changed
+25 -17

No files matched your search

+3 -1
View File
@@ -282,6 +282,8 @@ impl SpoticordSession {
}
};
trace!("Received IPC message: {:?}", msg);
match msg {
// Sink requests playback to start/resume
IpcPacket::StartPlayback => {
@@ -338,7 +340,7 @@ impl SpoticordSession {
let track_id = SpotifyId::from_uri(&track).unwrap();
let was_none = ipc_instance
.update_playback(duration_ms, position_ms, true)
.update_playback(duration_ms, position_ms, false)
.await;
if was_none {