diff options
Diffstat (limited to 'play/index.php')
-rw-r--r-- | play/index.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/play/index.php b/play/index.php index d3a3579b..d3596699 100644 --- a/play/index.php +++ b/play/index.php @@ -175,9 +175,8 @@ if (!make_bool($media->enabled)) { // If we are running in Legalize mode, don't play songs already playing if (Config::get('lock_songs')) { - if (!check_lock_songs($media->id)) { - debug_event('Play','Song ' . $media->id . ' is currently being played and lock songs is enabled','1'); - exit(); + if (!Stream::check_lock_media($media->id,get_class($media))) { + exit; } } |