diff options
Diffstat (limited to 'apps/app_jack.c')
-rw-r--r-- | apps/app_jack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_jack.c b/apps/app_jack.c index 10964f462..d1bdfa38f 100644 --- a/apps/app_jack.c +++ b/apps/app_jack.c @@ -768,7 +768,9 @@ static int jack_exec(struct ast_channel *chan, const char *data) while (!jack_data->stop) { struct ast_frame *f; - ast_waitfor(chan, -1); + if (ast_waitfor(chan, -1) < 0) { + break; + } f = ast_read(chan); if (!f) { |