[Asterisk-cvs] asterisk/channels chan_zap.c,1.271,1.272

markster at lists.digium.com markster at lists.digium.com
Thu Jun 17 00:46:13 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5042/channels

Modified Files:
	chan_zap.c 
Log Message:
Small typo


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.271
retrieving revision 1.272
diff -u -d -r1.271 -r1.272
--- chan_zap.c	17 Jun 2004 04:23:57 -0000	1.271
+++ chan_zap.c	17 Jun 2004 04:32:10 -0000	1.272
@@ -7006,10 +7006,12 @@
 								pri_hangup_all(pri->pvts[chanpos]->master);
 							else
 								pri->pvts[chanpos]->owner->_softhangup |= AST_SOFTHANGUP_DEV;
+							ast_mutex_unlock(&pri->pvts[chanpos]->lock);
 							chanpos = -1;
 						}
 					}
-					ast_mutex_unlock(&pri->pvts[chanpos]->lock);
+					if (chanpos > -1)
+						ast_mutex_unlock(&pri->pvts[chanpos]->lock);
 				}
 				if ((chanpos < 0) && (e->ring.flexible))
 					chanpos = pri_find_empty_chan(pri, 1);




More information about the svn-commits mailing list