Make ZapScan wait 100ms for data
authorJames Golovich <james@gnuinter.net>
Sun, 14 Mar 2004 09:49:58 +0000 (09:49 +0000)
committerJames Golovich <james@gnuinter.net>
Sun, 14 Mar 2004 09:49:58 +0000 (09:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2419 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_zapscan.c

index d41723c..97fac25 100755 (executable)
@@ -256,6 +256,8 @@ static int conf_exec(struct ast_channel *chan, void *data)
                 ast_answer(chan);
 
         for (;;) {
+               if (ast_waitfor(chan, 100) < 0)
+                       break;
                f = ast_read(chan);
                if (!f)
                        break;