mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-06 10:09:33 +02:00
Retry to open alsa if handle is null
This commit is contained in:
parent
0e936d06fa
commit
b27aee80e6
1 changed files with 2 additions and 0 deletions
|
@ -206,6 +206,8 @@ void AlsaPlayer::worker()
|
||||||
LOG(ERROR, LOG_TAG) << "Exception in initAlsa: " << e.what() << endl;
|
LOG(ERROR, LOG_TAG) << "Exception in initAlsa: " << e.what() << endl;
|
||||||
chronos::sleep(100);
|
chronos::sleep(100);
|
||||||
}
|
}
|
||||||
|
if (handle_ == nullptr)
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wait_result = snd_pcm_wait(handle_, 100);
|
int wait_result = snd_pcm_wait(handle_, 100);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue