Commit 2a95bd97 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Increment tries in loop that have a maximum number of tries.

parent 19495da6
......@@ -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){
if (tries>30) {/*after 3 seconds, give up*/
ms_warning("Could not obtain exosip lock in a reasonable time, giving up.");
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment