Don't update cooldown date with wait time if it is initialized already.
This commit is contained in:
parent
1e5db44c0d
commit
f0debd7bb8
@ -285,7 +285,7 @@ void TranscriptionManager::on_transcribed_audio(
|
|||||||
if (r_audio.is_error()) {
|
if (r_audio.is_error()) {
|
||||||
auto retry_after = Global::get_retry_after(r_audio.error());
|
auto retry_after = Global::get_retry_after(r_audio.error());
|
||||||
on_transcribed_audio_update(file_info, true, r_audio.move_as_error());
|
on_transcribed_audio_update(file_info, true, r_audio.move_as_error());
|
||||||
if (retry_after > 0) {
|
if (retry_after > 0 && trial_parameters_.left_tries_ > 0) {
|
||||||
TrialParameters new_trial_parameters = trial_parameters_;
|
TrialParameters new_trial_parameters = trial_parameters_;
|
||||||
new_trial_parameters.next_reset_date_ = G()->unix_time() + retry_after;
|
new_trial_parameters.next_reset_date_ = G()->unix_time() + retry_after;
|
||||||
new_trial_parameters.left_tries_ = 0;
|
new_trial_parameters.left_tries_ = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user