Browse code

revert accidentaly removed empty lines and other formatting

ovoshlook authored on 08/09/2020 04:41:09
Showing 1 changed files
... ...
@@ -553,9 +553,8 @@ int reg_ht_add(reg_uac_t *reg)
553 553
 	memset(nr, 0, sizeof(reg_uac_t) + len);
554 554
 	nr->expires = reg->expires;
555 555
 	nr->flags   = reg->flags;
556
-	if (reg->reg_delay) {
556
+	if (reg->reg_delay) 
557 557
 		nr->reg_delay = reg->reg_delay;
558
-	}
559 558
 	else if (reg_random_delay>0)
560 559
 		nr->reg_delay = kam_rand() % reg_random_delay;
561 560
 	nr->reg_init  = time(NULL);
... ...
@@ -1093,6 +1092,7 @@ int uac_reg_update(reg_uac_t *reg, time_t tn)
1093 1092
 		return 4;
1094 1093
 	if(reg->flags&UAC_REG_DISABLED)
1095 1094
 		return 4;
1095
+
1096 1096
 	if(!(reg->flags & UAC_REG_INIT)) {
1097 1097
 		if(reg->reg_delay>0) {
1098 1098
 			if(tn < reg->reg_init+reg->reg_delay) {
... ...
@@ -1101,6 +1101,7 @@ int uac_reg_update(reg_uac_t *reg, time_t tn)
1101 1101
 		}
1102 1102
 		reg->flags |= UAC_REG_INIT;
1103 1103
 	}
1104
+
1104 1105
 	if(reg->timer_expires > tn + reg_timer_interval + 3)
1105 1106
 		return 3;
1106 1107
 	uuid = (char*)shm_malloc(reg->l_uuid.len+1);