]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove a couple of duplicate unlocks
authorRussell Bryant <russell@russellbryant.com>
Thu, 21 Jun 2007 15:21:16 +0000 (15:21 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 21 Jun 2007 15:21:16 +0000 (15:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70726 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 8c60713bd41e5adf831f280763bf561445f6abd2..2c90f291e154afb8e9985ace75c1d564e79c4934 100644 (file)
@@ -4277,14 +4277,12 @@ static int sla_trunk_exec(struct ast_channel *chan, void *data)
        AST_RWLIST_UNLOCK(&sla_trunks);
        if (!trunk) {
                ast_log(LOG_ERROR, "SLA Trunk '%s' not found!\n", trunk_name);
-               AST_RWLIST_UNLOCK(&sla_trunks);
                pbx_builtin_setvar_helper(chan, "SLATRUNK_STATUS", "FAILURE");
                return 0;
        }
        if (trunk->chan) {
                ast_log(LOG_ERROR, "Call came in on %s, but the trunk is already in use!\n",
                        trunk_name);
-               AST_RWLIST_UNLOCK(&sla_trunks);
                pbx_builtin_setvar_helper(chan, "SLATRUNK_STATUS", "FAILURE");
                return 0;
        }