summaryrefslogtreecommitdiff
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 41f588c0e..a8b4d62e8 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -867,7 +867,7 @@ static int moh_register(struct mohclass *moh, int reload)
#else
moh->pseudofd = -1;
#endif
- if (ast_pthread_create(&moh->thread, NULL, monmp3thread, moh)) {
+ if (ast_pthread_create_background(&moh->thread, NULL, monmp3thread, moh)) {
ast_log(LOG_WARNING, "Unable to create moh...\n");
if (moh->pseudofd > -1)
close(moh->pseudofd);