[Asterisk-cvs] asterisk pbx.c,1.269,1.270
kpfleming
kpfleming
Thu Sep 1 16:14:58 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv5719
Modified Files:
pbx.c
Log Message:
don't unlock a channel we didn't lock
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.269
retrieving revision 1.270
diff -u -d -r1.269 -r1.270
--- pbx.c 29 Aug 2005 23:53:29 -0000 1.269
+++ pbx.c 1 Sep 2005 20:15:58 -0000 1.270
@@ -4881,7 +4881,8 @@
ast_verbose(VERBOSE_PREFIX_4 "Channel %s was answered.\n", chan->name);
if (sync > 1) {
- ast_mutex_unlock(&chan->lock);
+ if (channel)
+ ast_mutex_unlock(&chan->lock);
if (ast_pbx_run(chan)) {
ast_log(LOG_ERROR, "Unable to run PBX on %s\n", chan->name);
ast_hangup(chan);
More information about the svn-commits
mailing list