Skip to content

Commit

Permalink
app_rpt: Remove unreachable code (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmer authored Jan 27, 2025
1 parent 039378f commit e957e50
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apps/app_rpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -3222,9 +3222,6 @@ static inline void periodic_process_links(struct rpt *myrpt, const int elap)
break;
}
if ((!l->chan) && (!l->retrytimer) && l->outbound && (l->retries++ < l->max_retries) && (l->hasconnected)) {
if (l->chan)
ast_hangup(l->chan);
l->chan = NULL;
rpt_mutex_unlock(&myrpt->lock);
if ((l->name[0] > '0') && (l->name[0] <= '9') && (!l->isremote)) {
if (attempt_reconnect(myrpt, l) == -1) {
Expand Down

0 comments on commit e957e50

Please sign in to comment.