summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--play/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/play/index.php b/play/index.php
index 1e6d9fd4..07504b80 100644
--- a/play/index.php
+++ b/play/index.php
@@ -254,6 +254,9 @@ while (!feof($fp) && (connection_status() == 0)) {
$bytesStreamed += strlen($buf);
}
+/* Delete the Now Playing Entry */
+delete_now_playing($lastid);
+
if ($bytesStreamed > $minBytesStreamed) {
$user->update_stats($song_id);
/* If this is a voting tmp playlist remove the entry */
@@ -267,9 +270,6 @@ if ($bytesStreamed > $minBytesStreamed) {
/* Set the Song as Played if it isn't already */
$song->set_played();
-/* Delete the Now Playing Entry */
-delete_now_playing($lastid);
-
/* Clean up any open ends */
if ($GLOBALS['user']->prefs['play_type'] == 'downsample' || !$song->native_stream()) {
@pclose($fp);