From a2216330852b5c4efff79e94304ca009db8247bd Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Wed, 19 Dec 2018 23:26:21 +0100
Subject: [PATCH] See #638: fix skipping to last track in album

---
 front/src/store/queue.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/front/src/store/queue.js b/front/src/store/queue.js
index 717616d2d7..dba102b466 100644
--- a/front/src/store/queue.js
+++ b/front/src/store/queue.js
@@ -86,7 +86,7 @@ export default {
         if (callback && i + 1 === total) {
           p.then(callback)
         }
-        if (shouldPlay && p) {
+        if (shouldPlay && p && i + 1 === total) {
           p.then(() => {
             dispatch('next')
           })
-- 
GitLab