diff options
Diffstat (limited to 'autoservice.c')
-rwxr-xr-x | autoservice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoservice.c b/autoservice.c index 0082ea87a..df4973a5b 100755 --- a/autoservice.c +++ b/autoservice.c @@ -147,7 +147,7 @@ int ast_autoservice_stop(struct ast_channel *chan) pthread_kill(asthread, SIGURG); ast_mutex_unlock(&autolock); /* Wait for it to un-block */ - while(chan->blocking) + while(ast_test_flag(chan, AST_FLAG_BLOCKING)) usleep(1000); return res; } |