diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-15 18:15:48 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-15 18:15:48 +0000 |
commit | 7642d70c191a281065640c778f834ae1eaf2301a (patch) | |
tree | 3153dfa58145ea226440256a0e5215637c9d6fad | |
parent | 39031cce82b4f039c77f62533e3003144bfd2b04 (diff) |
Fix trunk breakage due to chan->lock being renamed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89300 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_zapscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_zapscan.c b/apps/app_zapscan.c index 5a0cc8a9b..343c47da6 100644 --- a/apps/app_zapscan.c +++ b/apps/app_zapscan.c @@ -340,7 +340,7 @@ static int conf_exec(struct ast_channel *chan, void *data) if (tempchan && (!strcmp(tempchan->tech->type, "Zap")) && (tempchan != chan) ) { ast_verb(3, "Zap channel %s is in-use, monitoring...\n", tempchan->name); ast_copy_string(confstr, tempchan->name, sizeof(confstr)); - ast_mutex_unlock(&tempchan->lock); + ast_channel_unlock(tempchan); if ((tmp = strchr(confstr,'-'))) { *tmp = '\0'; } @@ -351,7 +351,7 @@ static int conf_exec(struct ast_channel *chan, void *data) if (res<0) break; input = res; } else if (tempchan) - ast_mutex_unlock(&tempchan->lock); + ast_channel_unlock(tempchan); lastchan = tempchan; } return res; |