fix bug
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 11 Aug 2005 18:34:03 +0000 (18:34 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 11 Aug 2005 18:34:03 +0000 (18:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6323 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_externalivr.c

index f8a7e03..1789469 100755 (executable)
@@ -390,8 +390,8 @@ static int app_exec(struct ast_channel *chan, void *data)
                                        u->list_cleared = 1;
                                        entry = make_entry(&input[2]);
                                        if (entry)
-                                               AST_LIST_UNLOCK(&u->playlist);
-                                       AST_LIST_INSERT_TAIL(&u->playlist, entry, list);
+                                               AST_LIST_INSERT_TAIL(&u->playlist, entry, list);
+                                       AST_LIST_UNLOCK(&u->playlist);
                                } else if (input[0] == 'A') {
                                        if (ast_fileexists(&input[2], NULL, NULL) == -1) {
                                                fprintf(child_events, "Z,%10ld\n", time(NULL));