From: <do...@us...> - 2007-12-06 13:58:28
|
Revision: 1304 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1304&view=rev Author: dohpaz Date: 2007-12-06 05:58:28 -0800 (Thu, 06 Dec 2007) Log Message: ----------- Start register refresh up to 3 seconds before expiration, allow time for resend. Modified Paths: -------------- branches/team/elbunce/iaxclient/lib/iaxclient_lib.c Modified: branches/team/elbunce/iaxclient/lib/iaxclient_lib.c =================================================================== --- branches/team/elbunce/iaxclient/lib/iaxclient_lib.c 2007-12-06 06:10:21 UTC (rev 1303) +++ branches/team/elbunce/iaxclient/lib/iaxclient_lib.c 2007-12-06 13:58:28 UTC (rev 1304) @@ -749,9 +749,9 @@ for ( cur = registrations; cur != NULL; cur = cur->next ) { - // If there is less than one second before the registration is about + // If there is less than three seconds before the registration is about // to expire, renew it. - if ( iaxci_usecdiff(&now, &cur->last) > (cur->refresh - 1) * 1000 *1000 ) + if ( iaxci_usecdiff(&now, &cur->last) > (cur->refresh - 3) * 1000 *1000 ) { if ( cur->session != NULL ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |