Index: Slim/Plugin/PreventStandby/Plugin.pm =================================================================== --- Slim/Plugin/PreventStandby/Plugin.pm (revision 20276) +++ Slim/Plugin/PreventStandby/Plugin.pm (working copy) @@ -53,11 +53,11 @@ for my $client (Slim::Player::Client::clients()) { - my $playmode = $client->playmode(); + my $clientmode = Slim::Buttons::Common::mode ($client); - $log->info(sprintf("Client %s in playmode %s", $client->name, $playmode)); + $log->info(sprintf("Client %s in clientmode %s", $client->name, $clientmode)); - if ($playmode ne 'stop' && $playmode ne 'pause') { + if (Slim::Buttons::Common::mode ($client) !~ /^[off]/i) { $log->info("Setting thread execution state");