summaryrefslogtreecommitdiff
path: root/apps/app_zapras.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_zapras.c')
-rw-r--r--apps/app_zapras.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_zapras.c b/apps/app_zapras.c
index 448c45b7b..3433ba0f1 100644
--- a/apps/app_zapras.c
+++ b/apps/app_zapras.c
@@ -161,7 +161,7 @@ static void run_ras(struct ast_channel *chan, char *args)
res = wait4(pid, &status, WNOHANG, NULL);
if (!res) {
/* Check for hangup */
- if (chan->_softhangup && !signalled) {
+ if (ast_check_hangup(chan) && !signalled) {
ast_debug(1, "Channel '%s' hungup. Signalling RAS at %d to die...\n", chan->name, pid);
kill(pid, SIGTERM);
signalled=1;