[asterisk-commits] juggie: branch group/NoLossCDR-Redux2 r105771 - /team/group/NoLossCDR-Redux2/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 4 15:51:48 CST 2008


Author: juggie
Date: Tue Mar  4 15:51:48 2008
New Revision: 105771

URL: http://svn.digium.com/view/asterisk?view=rev&rev=105771
Log:
only traverse the backends list on a shutdown if safeshutdown is enabled, and the cdr engine is enabled

Modified:
    team/group/NoLossCDR-Redux2/main/cdr.c

Modified: team/group/NoLossCDR-Redux2/main/cdr.c
URL: http://svn.digium.com/view/asterisk/team/group/NoLossCDR-Redux2/main/cdr.c?view=diff&rev=105771&r1=105770&r2=105771
==============================================================================
--- team/group/NoLossCDR-Redux2/main/cdr.c (original)
+++ team/group/NoLossCDR-Redux2/main/cdr.c Tue Mar  4 15:51:48 2008
@@ -1367,7 +1367,7 @@
 {
 	struct ast_cdr_backend *backend = NULL;
 
-	if (safeshutdown) {
+	if (safeshutdown && enabled) {
 		ast_verb(2, "Waiting for CDR Backends to shutdown...\n");
 		AST_RWLIST_WRLOCK(&backends);
 		AST_RWLIST_TRAVERSE_SAFE_BEGIN(&backends, backend, list) {




More information about the asterisk-commits mailing list