mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
Fixing a problem where NULL channels would cause a crash when calling indisposed queue members (i.e. paused, wrapup time not completed, etc.)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2079,8 +2079,10 @@ static struct callattempt *wait_for_answer(struct queue_ent *qe, struct callatte
|
|||||||
|
|
||||||
starttime = (long) time(NULL);
|
starttime = (long) time(NULL);
|
||||||
#ifdef HAVE_EPOLL
|
#ifdef HAVE_EPOLL
|
||||||
for (epollo = outgoing; epollo; epollo = epollo->q_next)
|
for (epollo = outgoing; epollo; epollo = epollo->q_next) {
|
||||||
ast_poll_channel_add(in, epollo->chan);
|
if(epollo->chan)
|
||||||
|
ast_poll_channel_add(in, epollo->chan);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (*to && !peer) {
|
while (*to && !peer) {
|
||||||
@@ -2287,8 +2289,10 @@ static struct callattempt *wait_for_answer(struct queue_ent *qe, struct callatte
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_EPOLL
|
#ifdef HAVE_EPOLL
|
||||||
for(epollo = outgoing; epollo; epollo = epollo->q_next)
|
for(epollo = outgoing; epollo; epollo = epollo->q_next) {
|
||||||
ast_poll_channel_del(in, epollo->chan);
|
if(epollo->chan)
|
||||||
|
ast_poll_channel_del(in, epollo->chan);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return peer;
|
return peer;
|
||||||
|
Reference in New Issue
Block a user