[asterisk-commits] russell: trunk r53061 - /trunk/apps/app_rpt.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Feb 1 07:43:45 MST 2007


Author: russell
Date: Thu Feb  1 08:43:44 2007
New Revision: 53061

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53061
Log:
Remove duplicate calls to pthread_attr_destroy() that I put in yesterday
by accident.

Modified:
    trunk/apps/app_rpt.c

Modified: trunk/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_rpt.c?view=diff&rev=53061&r1=53060&r2=53061
==============================================================================
--- trunk/apps/app_rpt.c (original)
+++ trunk/apps/app_rpt.c Thu Feb  1 08:43:44 2007
@@ -3188,7 +3188,6 @@
 	pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 	ast_pthread_create(&myrpt->rpt_call_thread, &attr, rpt_call, (void *) myrpt);
 	pthread_attr_destroy(&attr);
-	pthread_attr_destroy(&attr);
 	return DC_COMPLETE;
 }
 
@@ -5541,7 +5540,6 @@
 			pthread_attr_init(&attr);
 			pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 			ast_pthread_create(&myrpt->rpt_call_thread, &attr, rpt_call, (void *)myrpt);
-			pthread_attr_destroy(&attr);
 			pthread_attr_destroy(&attr);
 			return;
 		}
@@ -6738,7 +6736,6 @@
 		pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 		ast_pthread_create(&rpt_vars[i].rpt_thread, &attr, rpt, (void *) &rpt_vars[i]);
 		pthread_attr_destroy(&attr);
-		pthread_attr_destroy(&attr);
 	}
 	usleep(500000);
 	for (;;) {
@@ -6767,7 +6764,6 @@
 				pthread_attr_init(&attr);
 	 			pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
 				ast_pthread_create(&rpt_vars[i].rpt_thread, &attr, rpt, (void *) &rpt_vars[i]);
-				pthread_attr_destroy(&attr);
 				pthread_attr_destroy(&attr);
 				ast_log(LOG_WARNING, "rpt_thread restarted on node %s\n", rpt_vars[i].name);
 			}



More information about the asterisk-commits mailing list