[asterisk-commits] file: branch 1.4 r50674 -
/branches/1.4/res/res_snmp.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jan 12 20:04:55 MST 2007
Author: file
Date: Fri Jan 12 21:04:55 2007
New Revision: 50674
URL: http://svn.digium.com/view/asterisk?view=rev&rev=50674
Log:
Only join the snmp thread on an unload if the thread is actually running. (issue #8810 reported by junky)
Modified:
branches/1.4/res/res_snmp.c
Modified: branches/1.4/res/res_snmp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_snmp.c?view=diff&rev=50674&r1=50673&r2=50674
==============================================================================
--- branches/1.4/res/res_snmp.c (original)
+++ branches/1.4/res/res_snmp.c Fri Jan 12 21:04:55 2007
@@ -106,7 +106,7 @@
ast_verbose(VERBOSE_PREFIX_1 "Unloading [Sub]Agent Module\n");
res_snmp_dont_stop = 0;
- return pthread_join(thread, NULL);
+ return ((thread != AST_PTHREADT_NULL) ? pthread_join(thread, NULL) : 0);
}
static int reload(void)
More information about the asterisk-commits
mailing list