mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merged revisions 89886 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89886 | russell | 2007-11-27 17:47:28 -0600 (Tue, 27 Nov 2007) | 2 lines Don't do frame processing if ast_read() returned NULL. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -81,6 +81,9 @@ static void *autoservice_run(void *ign)
|
|||||||
if ((chan = ast_waitfor_n(mons, x, &ms))) {
|
if ((chan = ast_waitfor_n(mons, x, &ms))) {
|
||||||
struct ast_frame *f = ast_read(chan);
|
struct ast_frame *f = ast_read(chan);
|
||||||
|
|
||||||
|
if (!f)
|
||||||
|
continue;
|
||||||
|
|
||||||
/* Do not add a default entry in this switch statement. Each new
|
/* Do not add a default entry in this switch statement. Each new
|
||||||
* frame type should be addressed directly as to whether it should
|
* frame type should be addressed directly as to whether it should
|
||||||
* be queued up or not. */
|
* be queued up or not. */
|
||||||
|
Reference in New Issue
Block a user