Skip to content

Commit

Permalink
Gracefully handle empty queue
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Apr 23, 2012
1 parent 67d6a45 commit 1deda21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/queue.rb
Expand Up @@ -85,6 +85,7 @@ def self.songs
songs.slice(playlist_offset, songs.length - playlist_offset)
rescue Exception => e
# just in case!
[]
end

# Is this song queued up to play?
Expand Down

0 comments on commit 1deda21

Please sign in to comment.