Skip to content

Commit

Permalink
Retry to open alsa if handle is null
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Apr 16, 2020
1 parent 0e936d0 commit b27aee8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/player/alsa_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b27aee8

Please sign in to comment.