player stop logic fix

This commit is contained in:
Philippe G
2021-12-25 00:38:56 -08:00
parent 7f894f1635
commit 1422003271
2 changed files with 2 additions and 2 deletions

View File

@@ -136,6 +136,7 @@ static void cspotTask(void *pvParameters) {
break;
case CSpotEventType::DISC:
cspot.cHandler(CSPOT_DISC);
spircController->stopPlayer();
mercuryManager->stop();
break;
case CSpotEventType::PREV:
@@ -170,7 +171,7 @@ static void cspotTask(void *pvParameters) {
// release auth blob and flush files
cspot.blob.reset();
file->flush();
ESP_LOGI(TAG, "Shutting down CSpot player");
}