Fixed a getter method in CommandHandler.cpp (player is playing)
This commit is contained in:
@@ -1201,7 +1201,7 @@ void CommandHandler::handleForceUpdateCommand(JsonVariant contents, const Messag
|
|||||||
LOG_WARNING("🔄 Force OTA update requested via command");
|
LOG_WARNING("🔄 Force OTA update requested via command");
|
||||||
|
|
||||||
// Check if player is active
|
// Check if player is active
|
||||||
if (_player && _player->isPlaying()) {
|
if (_player && _player->isCurrentlyPlaying()) {
|
||||||
sendErrorResponse("force_update", "Cannot update while playback is active", context);
|
sendErrorResponse("force_update", "Cannot update while playback is active", context);
|
||||||
LOG_WARNING("Force update rejected - player is active");
|
LOG_WARNING("Force update rejected - player is active");
|
||||||
return;
|
return;
|
||||||
@@ -1251,7 +1251,7 @@ void CommandHandler::handleCustomUpdateCommand(JsonVariant contents, const Messa
|
|||||||
contents["file_size"].as<size_t>() : 0;
|
contents["file_size"].as<size_t>() : 0;
|
||||||
|
|
||||||
// Check if player is active
|
// Check if player is active
|
||||||
if (_player && _player->isPlaying()) {
|
if (_player && _player->isCurrentlyPlaying()) {
|
||||||
sendErrorResponse("custom_update", "Cannot update while playback is active", context);
|
sendErrorResponse("custom_update", "Cannot update while playback is active", context);
|
||||||
LOG_WARNING("Custom update rejected - player is active");
|
LOG_WARNING("Custom update rejected - player is active");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user