From 8af55b34ade290c5d73c6da0f67c14fde2878597 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 27 Jul 2006 22:21:46 +0000 Subject: restore infinite timeout for ast_waitfor() call git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38369 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_chanspy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_chanspy.c') diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 6a405af9e..63f743d01 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -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)) { -- cgit v1.2.3