diff --git a/apps/app_queue.c b/apps/app_queue.c index aa3564a872aa9fa2ac3d09eb65fe73e8b4ae7c5d..efdbf9c7b771409fe04ffab2c13e43bb7ce87013 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2344,7 +2344,8 @@ posout: res = play_file(qe->chan, qe->parent->sound_thanks); } playout: - if ((res > 0 && !valid_exit(qe, res)) || res < 0) + + if ((res > 0 && !valid_exit(qe, res))) res = 0; /* Set our last_pos indicators */ @@ -2919,7 +2920,7 @@ static int say_periodic_announcement(struct queue_ent *qe, int ringing) /* play the announcement */ res = play_file(qe->chan, ast_str_buffer(qe->parent->sound_periodicannounce[qe->last_periodic_announce_sound])); - if ((res > 0 && !valid_exit(qe, res)) || res < 0) + if (res > 0 && !valid_exit(qe, res)) res = 0; /* Resume Music on Hold if the caller is going to stay in the queue */