Skip to content
  • Guillaume Roguez's avatar
    alsalayer: fix too long blocking AlsaThread when joining it · ab614cdc
    Guillaume Roguez authored
    AlsaThread calls AlsaLayer::openDevice() that may block 10s
    if alsa device is busy. And this call is done 3 times!
    It's a problem if it occures during thread join(), made at call hangup
    for examble, blocking all the application until the thread die.
    
    This patch reduces the timeout of openDevice to 2s and check
    if thread exit is requested at each retry.
    
    Issue: #75538
    Change-Id: I3affa3869d039393677b57d2c9456f2ff1405264
    ab614cdc