res = play_file(qe->chan, qe->parent->sound_thanks);
playout:
- if (res > 0 && !valid_exit(qe, res))
+ if ((res > 0 && !valid_exit(qe, res)) || res < 0)
res = 0;
/* Set our last_pos indicators */
/* play the announcement */
res = play_file(qe->chan, qe->parent->sound_periodicannounce[qe->last_periodic_announce_sound]);
- if (res > 0 && !valid_exit(qe, res))
+ if ((res > 0 && !valid_exit(qe, res)) || res < 0)
res = 0;
/* Resume Music on Hold if the caller is going to stay in the queue */