mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 22:47:15 +03:00
fixed cspot crash when switching with LMS
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user