From 909f8f68fb89083f5dd5defe7e7aeab8e549bde8 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Sat, 2 Feb 2019 12:47:14 -0500 Subject: [PATCH] Should be able to skip tracks while paused --- Persephone/MPDClient.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Persephone/MPDClient.swift b/Persephone/MPDClient.swift index cf61b4d..50b1f12 100644 --- a/Persephone/MPDClient.swift +++ b/Persephone/MPDClient.swift @@ -104,13 +104,13 @@ class MPDClient { } func sendNextTrack() { - if getState() == .playing { + if [.playing, .paused].contains(getState()) { mpd_run_next(connection) } } func sendPreviousTrack() { - if getState() == .playing { + if [.playing, .paused].contains(getState()) { mpd_run_previous(connection) } }