[svn-commits] mmichelson: branch 1.4 r162265 - /branches/1.4/main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Dec 9 14:28:44 CST 2008


Author: mmichelson
Date: Tue Dec  9 14:28:44 2008
New Revision: 162265

URL: http://svn.digium.com/view/asterisk?view=rev&rev=162265
Log:
If we fail to start a thread for the pbx to run in, we need to
be sure to decrease the number of active calls on the system.

This fix may relate to ABE-1713, but it is not certain yet.


Modified:
    branches/1.4/main/pbx.c

Modified: branches/1.4/main/pbx.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/pbx.c?view=diff&rev=162265&r1=162264&r2=162265
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Tue Dec  9 14:28:44 2008
@@ -2645,6 +2645,7 @@
 	if (ast_pthread_create(&t, &attr, pbx_thread, c)) {
 		ast_log(LOG_WARNING, "Failed to create new channel thread\n");
 		pthread_attr_destroy(&attr);
+		decrease_call_count();
 		return AST_PBX_FAILED;
 	}
 	pthread_attr_destroy(&attr);




More information about the svn-commits mailing list