aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-11 18:34:03 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-11 18:34:03 +0000
commit6484f1b7f8ebe3ac459c834987c9b77f3a60f3ea (patch)
tree7b7182e3cc57d8e852d1868c57eff7cf6f95ecc5 /apps
parent765912d19dc6b910601e8bc6a64044c2ce42754e (diff)
fix bug
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6323 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_externalivr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c
index f8a7e0393..17894694f 100755
--- a/apps/app_externalivr.c
+++ b/apps/app_externalivr.c
@@ -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));