[svn-commits] mmichelson: branch 1.4 r204012 - /branches/1.4/apps/app_mixmonitor.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jun 29 10:04:22 CDT 2009


Author: mmichelson
Date: Mon Jun 29 10:04:17 2009
New Revision: 204012

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=204012
Log:
Place unlock of mutex in an else block so that it does not get unlocked twice.

(closes issue #15400)
Reported by: aragon


Modified:
    branches/1.4/apps/app_mixmonitor.c

Modified: branches/1.4/apps/app_mixmonitor.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/apps/app_mixmonitor.c?view=diff&rev=204012&r1=204011&r2=204012
==============================================================================
--- branches/1.4/apps/app_mixmonitor.c (original)
+++ branches/1.4/apps/app_mixmonitor.c Mon Jun 29 10:04:17 2009
@@ -273,8 +273,9 @@
 					ast_writestream(*fs, cur);
 				}
 			}
+		} else {
+			ast_mutex_unlock(&mixmonitor->mixmonitor_ds->lock);
 		}
-		ast_mutex_unlock(&mixmonitor->mixmonitor_ds->lock);
 
 		/* All done! free it. */
 		ast_frame_free(fr, 0);




More information about the svn-commits mailing list