fixed cspot crash when switching with LMS

This commit is contained in:
Philippe G
2021-12-25 23:05:53 -08:00
parent 1422003271
commit 676acbdbc2
5 changed files with 13 additions and 4 deletions

View File

@@ -55,7 +55,8 @@ void SpircController::disconnect(void) {
player->cancelCurrentTrack();
state->setActive(false);
notify();
sendEvent(CSpotEventType::DISC);
// Send the event at the end at it might be a last gasp
sendEvent(CSpotEventType::DISC);
}
void SpircController::playToggle() {