diff --git a/queue.go b/queue.go index 65d3f64..33108b1 100644 --- a/queue.go +++ b/queue.go @@ -218,7 +218,7 @@ func (q *Queue) saveQueue(isQuit bool) error { currentSongInQueue = true } } - if !currentSongInQueue { + if !currentSongInQueue && len(q.items) != 0 { hashed := sha1Hex(getName(currentSongPath)) content.WriteString(hashed + "\n") }