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

@@ -45,8 +45,8 @@ void AudioChunkManager::close() {
}
void AudioChunkManager::runTask() {
this->isRunning = true;
std::scoped_lock lock(this->runningMutex);
this->isRunning = true;
while (isRunning) {
std::pair<std::vector<uint8_t>, bool> audioPair;
if (this->audioChunkDataQueue.wtpop(audioPair, 100)) {