[asterisk-commits] mmichelson: branch mmichelson/pool_shark r380432 - /team/mmichelson/pool_shar...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 29 16:54:44 CST 2013


Author: mmichelson
Date: Tue Jan 29 16:54:40 2013
New Revision: 380432

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380432
Log:
Prevent taskprocessors from having tasks pushed to them once they have shut down.


Modified:
    team/mmichelson/pool_shark/main/taskprocessor.c

Modified: team/mmichelson/pool_shark/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/pool_shark/main/taskprocessor.c?view=diff&rev=380432&r1=380431&r2=380432
==============================================================================
--- team/mmichelson/pool_shark/main/taskprocessor.c (original)
+++ team/mmichelson/pool_shark/main/taskprocessor.c Tue Jan 29 16:54:40 2013
@@ -647,6 +647,9 @@
 		ast_log(LOG_ERROR, "%s is missing!!\n", (tps) ? "task callback" : "taskprocessor");
 		return -1;
 	}
+	if (tps->shutting_down) {
+		return 0;
+	}
 	if (!(t = tps_task_alloc(task_exe, datap))) {
 		ast_log(LOG_ERROR, "failed to allocate task!  Can't push to '%s'\n", tps->name);
 		return -1;




More information about the asterisk-commits mailing list