restore infinite timeout for ast_waitfor() call
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 27 Jul 2006 22:21:46 +0000 (22:21 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 27 Jul 2006 22:21:46 +0000 (22:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38369 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_chanspy.c

index 6a405af..63f743d 100644 (file)
@@ -292,7 +292,7 @@ static int channel_spy(struct ast_channel *chan, struct ast_channel *spyee, int
           has arrived, since the spied-on channel could have gone away while
           we were waiting
        */
-       while ((res = ast_waitfor(chan, 500) > -1) &&
+       while ((res = ast_waitfor(chan, -1) > -1) &&
               csth.spy.status == CHANSPY_RUNNING &&
               !ast_check_hangup(chan) &&
               !ast_check_hangup(spyee)) {