]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove redundant safety net. The check for the autoservice channel list state
authorRussell Bryant <russell@russellbryant.com>
Thu, 17 Apr 2008 22:15:43 +0000 (22:15 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 17 Apr 2008 22:15:43 +0000 (22:15 +0000)
accomplishes the same goal in a better way.

(issue #12470)
Reported By: atis

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114230 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/autoservice.c

index f60abb503b6518e878fe89d4474f7a2505277c29..88ab0d4e60b6b1b0d7745d9ae1f6106be6472493 100644 (file)
@@ -271,10 +271,6 @@ int ast_autoservice_stop(struct ast_channel *chan)
        if (!orig_end_dtmf_flag)
                ast_clear_flag(chan, AST_FLAG_END_DTMF_ONLY);
 
-       /* Wait for it to un-block */
-       while (ast_test_flag(chan, AST_FLAG_BLOCKING))
-               usleep(1000);
-
        while ((f = AST_LIST_REMOVE_HEAD(&dtmf_frames, frame_list))) {
                ast_queue_frame(chan, f);
                ast_frfree(f);