aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_snmp.c')
-rw-r--r--res/res_snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_snmp.c b/res/res_snmp.c
index fbef97f0a..2ccadc407 100644
--- a/res/res_snmp.c
+++ b/res/res_snmp.c
@@ -96,7 +96,7 @@ static int load_module(void)
res_snmp_dont_stop = 1;
if (res_snmp_enabled)
- return ast_pthread_create(&thread, NULL, agent_thread, NULL);
+ return ast_pthread_create_background(&thread, NULL, agent_thread, NULL);
else
return 0;
}
@@ -121,7 +121,7 @@ static int reload(void)
res_snmp_dont_stop = 1;
if (res_snmp_enabled)
- return ast_pthread_create(&thread, NULL, agent_thread, NULL);
+ return ast_pthread_create_background(&thread, NULL, agent_thread, NULL);
else
return 0;
}