lociii/jukebox — pull request #18 by jone (2012-07-25 20:05:53+00:00)
Title: Use only active session in getRandomSongByPreferences, not inactive ones...

When the queue is empty, getRandomSongByPreferences is used for determining which song to play, based on sessions.

Before it did only consider expired sessions (expire-date > now), this changes the condition to only consider open sessions.