diff options
author | Mark Michelson <mmichelson@digium.com> | 2007-12-04 17:51:59 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2007-12-04 17:51:59 +0000 |
commit | 5d1fb935bacde6cf986ad92ef97abc4e69f3859b (patch) | |
tree | 214942876681798896b08f2f532542a879d01eb3 /apps | |
parent | e8b053c2d82330c7031dd5ea6b7cf474aebeddd2 (diff) |
Wrong locking style got merged from 1.4 to trunk. My mistake.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index a1219e45f..531297025 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2818,9 +2818,9 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce if (!datastore) { if(!(datastore = ast_channel_datastore_alloc(&dialed_interface_info, NULL))) { ao2_ref(cur, -1); - ast_mutex_unlock(&qe->parent->lock); + ao2_unlock(qe->parent); if(use_weight) - AST_LIST_UNLOCK(&queues); + ao2_unlock(queues); free(tmp); goto out; } @@ -2843,9 +2843,9 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce if(!(di = ast_calloc(1, sizeof(*di) + strlen(cur->interface)))) { ao2_ref(cur, -1); AST_LIST_UNLOCK(dialed_interfaces); - ast_mutex_unlock(&qe->parent->lock); + ao2_unlock(qe->parent); if(use_weight) - AST_LIST_UNLOCK(&queues); + ao2_unlock(queues); free(tmp); goto out; } |