diff options
Diffstat (limited to 'main/autoservice.c')
-rw-r--r-- | main/autoservice.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/autoservice.c b/main/autoservice.c index 2622e9509..327d13199 100644 --- a/main/autoservice.c +++ b/main/autoservice.c @@ -80,6 +80,9 @@ static void *autoservice_run(void *ign) if ((chan = ast_waitfor_n(mons, x, &ms))) { struct ast_frame *f = ast_read(chan); + + if (!f) + continue; /* Do not add a default entry in this switch statement. Each new * frame type should be addressed directly as to whether it should |