mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Increment tries in loop that have a maximum number of tries.
This commit is contained in:
parent
19495da6b9
commit
2a95bd9707
1 changed files with 1 additions and 0 deletions
|
|
@ -2400,6 +2400,7 @@ int sal_register_refresh(SalOp *op, int expires){
|
|||
* the exosip lock in a non blocking way, and give up if it takes too long*/
|
||||
while (eXosip_trylock()!=0){
|
||||
ms_usleep(100000);
|
||||
tries++;
|
||||
if (tries>30) {/*after 3 seconds, give up*/
|
||||
ms_warning("Could not obtain exosip lock in a reasonable time, giving up.");
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue