aboutsummaryrefslogtreecommitdiffstats
path: root/main/autoservice.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-30 19:48:25 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-30 19:48:25 +0000
commitb9b374d6fcf1dc6e72c12935ea446f12aa60f126 (patch)
tree33d4fdb1c2443547bd5eca37f235e0582bbc4da9 /main/autoservice.c
parent9fda3c1d172449c577bae54491fcb3413c3c5d69 (diff)
Merged revisions 119355 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r119355 | file | 2008-05-30 16:47:30 -0300 (Fri, 30 May 2008) | 10 lines Merged revisions 119354 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r119354 | file | 2008-05-30 16:46:37 -0300 (Fri, 30 May 2008) | 2 lines Fix a bug I found while testing for another issue. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@119356 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/autoservice.c')
-rw-r--r--main/autoservice.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/main/autoservice.c b/main/autoservice.c
index df475fa70..636e95dd3 100644
--- a/main/autoservice.c
+++ b/main/autoservice.c
@@ -155,21 +155,20 @@ static void *autoservice_run(void *ign)
continue;
}
- for (i = 0; i < x; i++) {
- struct ast_frame *dup_f;
-
- if (mons[i] != chan) {
- continue;
- }
-
- if ((dup_f = ast_frdup(f))) {
- AST_LIST_INSERT_TAIL(&ents[i]->deferred_frames, dup_f, frame_list);
- }
-
- break;
- }
-
if (f) {
+ for (i = 0; i < x; i++) {
+ struct ast_frame *dup_f;
+
+ if (mons[i] != chan) {
+ continue;
+ }
+
+ if ((dup_f = ast_frdup(f))) {
+ AST_LIST_INSERT_TAIL(&ents[i]->deferred_frames, dup_f, frame_list);
+ }
+
+ break;
+ }
ast_frfree(f);
}
}