Selaa lähdekoodia

uac: uac_reg: Only set UAC_REG_INIT flag if it was not set yet

Alex Hermann 9 vuotta sitten
vanhempi
commit
bf3109234e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      modules/uac/uac_reg.c

+ 1 - 1
modules/uac/uac_reg.c

@@ -1047,8 +1047,8 @@ int uac_reg_update(reg_uac_t *reg, time_t tn)
 				return 2;
 				return 2;
 			}
 			}
 		}
 		}
+		reg->flags |= UAC_REG_INIT;
 	}
 	}
-	reg->flags |= UAC_REG_INIT;
 
 
 	if(reg->timer_expires > tn + reg_timer_interval + 3)
 	if(reg->timer_expires > tn + reg_timer_interval + 3)
 		return 3;
 		return 3;