diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-07-27 22:21:46 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-07-27 22:21:46 +0000 |
commit | 8af55b34ade290c5d73c6da0f67c14fde2878597 (patch) | |
tree | 216b1c1227a565b875bf0f6ceb914ffcab808daf | |
parent | 22d37976f2b31ae56963a526f530b985e346e1df (diff) |
restore infinite timeout for ast_waitfor() call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | apps/app_chanspy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |