mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 00:29:35 +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;
|
||||
chronos::sleep(100);
|
||||
}
|
||||
if (handle_ == nullptr)
|
||||
continue;
|
||||
}
|
||||
|
||||
int wait_result = snd_pcm_wait(handle_, 100);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue