[svn-commits] mmichelson: branch group/manager2 r104043 - /team/group/manager2/res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Feb 22 17:31:39 CST 2008


Author: mmichelson
Date: Fri Feb 22 17:31:39 2008
New Revision: 104043

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104043
Log:
One more tweak. NULL the subscription after unsubscribing


Modified:
    team/group/manager2/res/res_manager2.c

Modified: team/group/manager2/res/res_manager2.c
URL: http://svn.digium.com/view/asterisk/team/group/manager2/res/res_manager2.c?view=diff&rev=104043&r1=104042&r2=104043
==============================================================================
--- team/group/manager2/res/res_manager2.c (original)
+++ team/group/manager2/res/res_manager2.c Fri Feb 22 17:31:39 2008
@@ -128,8 +128,10 @@
 {
 	int i;
 	for (i = 0; i < AST_EVENT_TOTAL; i++) {
-		if (manager_sub[i])
+		if (manager_sub[i]) {
 			ast_event_unsubscribe(manager_sub[i]);
+			manager_sub[i] = NULL;
+		}
 	}
 	if (info_thread.thread != AST_PTHREADT_NULL) {
 		info_thread.stop = 1;




More information about the svn-commits mailing list