Browse code

Merge 10d2c740d5c532cec4458d03d1d91672e5300fad into 7747872f066ead3488cbfc854873506bda4f7390

Surendra Tiwari authored on 07/06/2021 13:29:19 • GitHub committed on 07/06/2021 13:29:19
Showing 1 changed files
... ...
@@ -1205,7 +1205,7 @@ int uac_reg_update(reg_uac_t *reg, time_t tn)
1205 1205
 		reg->flags |= UAC_REG_INIT;
1206 1206
 	}
1207 1207
 
1208
-	if(reg->timer_expires > tn + reg_timer_interval + 3)
1208
+	if ((reg->expires/2) < reg->timer_expires - tn)
1209 1209
 		return 3;
1210 1210
 
1211 1211
 	return uac_reg_send(reg, tn);