Skip to content

Commit

Permalink
Merge pull request #432 from nlrcomcast/RDKTV_24616Fix
Browse files Browse the repository at this point in the history
RDKTV-24616:Factory Reset takes too long time around 2 Mins
  • Loading branch information
sadhyama committed Aug 4, 2023
2 parents 695c097 + 6467ad9 commit 42a7fe4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ static int backoff_delay (backoff_timer_t *timer)
}

calc_random_expiration (random(), random(), timer, &ts);

if (g_shutdown)
{
ParodusInfo("g_shutdown breaking delay\n");
pthread_condattr_destroy(&backoff_delay_cond_attr);
return BACKOFF_SHUTDOWN;
}

pthread_mutex_lock (&backoff_delay_mut);
// The condition variable will only be set if we shut down.
Expand Down

0 comments on commit 42a7fe4

Please sign in to comment.