restore infinite timeout for ast_waitfor() call

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Kevin P. Fleming 19 years ago
parent 22d37976f2
commit 8af55b34ad

@ -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 has arrived, since the spied-on channel could have gone away while
we were waiting we were waiting
*/ */
while ((res = ast_waitfor(chan, 500) > -1) && while ((res = ast_waitfor(chan, -1) > -1) &&
csth.spy.status == CHANSPY_RUNNING && csth.spy.status == CHANSPY_RUNNING &&
!ast_check_hangup(chan) && !ast_check_hangup(chan) &&
!ast_check_hangup(spyee)) { !ast_check_hangup(spyee)) {

Loading…
Cancel
Save